DEV Community

Discussion on: 100 Languages Speedrun: Episode 73: Free Pascal

Collapse
 
2colours profile image
2colours • Edited
  1. '💩'.length == 2 in Javascript as well
  2. "🧑‍".length == 2 in Python and (would you believe...) Ruby as well XDD Length of emojis is very much a heuristic thing in most languages, not something you should base any arguments upon (actually, Raku gets this right,"🧑‍".chars == 1). Actually useful related article: hsivonen.fi/string-length/
  3. wiki.freepascal.org/Unicode_Suppor... If you use Lazarus (which you perhaps should for Free Pascal), it's dead simple to get that code working, I just needed to add "Uses LazUTF8;".

Should you read these language speedruns?
No. Despite my bias towards Polish people, I have to say the author is a superficial edgelord who couldn't get further than a couple of hot takes per language. Ironically enough, these short posts often contain grammar mistakes as well - the high standards apparently don't apply to everything.