Post AwcmJCxlBAXvcjKxiy by realcainmosni@mastodon.me.uk
 (DIR) More posts by realcainmosni@mastodon.me.uk
 (DIR) Post #AwcLc0fkOxwQFFeX8y by foone@digipres.club
       2025-07-29T06:45:21Z
       
       2 likes, 0 repeats
       
       This is one of my least favorite python syntax features: >>> values=[... 'a'... 'b',... 'c',... ]>>> 'a' in valuesFalse
       
 (DIR) Post #AwcLqauuRTD6i3hPHc by foone@digipres.club
       2025-07-29T06:47:58Z
       
       0 likes, 0 repeats
       
       explanation: there's a missing comma between the first and second elements. this would normally be an error, except python automatically merges strings, even with whitespace in them.so the contents of values right now is ['ab', 'c']
       
 (DIR) Post #AwcM7cukGkXHpLkBdY by foone@digipres.club
       2025-07-29T06:50:52Z
       
       0 likes, 0 repeats
       
       @abstractcode I've often thought of building a programming language that makes as many surprising features as possible, but I fear the combination of Brainfuck and PHP has already occupied that territory
       
 (DIR) Post #AwcMD2nbSQT5YUzE9Y by fst@mstdn.io
       2025-07-29T06:51:08Z
       
       0 likes, 0 repeats
       
       @foone wow, that surprised me too. Didn't notice the "missing" comma at first. The implicit string concatenation is indeed not obvious here.
       
 (DIR) Post #AwcMDionEONLsLrlq4 by gkrnours@mastodon.gamedev.place
       2025-07-29T06:51:20Z
       
       0 likes, 0 repeats
       
       @foone I wonder if one could add to python a "from __future__ import disable_c_style_concat" and maybe a new "from __past__ import enable_c_style_concat" along a flag to make it raise a warning globally, so there is a clear path to make the feature opt-in instead of the current "we are stuck with it"
       
 (DIR) Post #AwcMGRXbvK33A07w1I by raphael@mastodon.sdf.org
       2025-07-29T06:51:34Z
       
       0 likes, 0 repeats
       
       @foone this is up there right with isinstance(“abc”[0], str)
       
 (DIR) Post #AwcMShoDGYuJ5ZjvPc by otte_homan@theblower.au
       2025-07-29T06:54:47Z
       
       0 likes, 0 repeats
       
       @foone whitespacedoesnotexistinpython.
       
 (DIR) Post #AwcN8RHP6yPJzGIGZs by jbqueru@floss.social
       2025-07-29T07:02:20Z
       
       0 likes, 0 repeats
       
       @foone Amusingly, the same would also happen in C.
       
 (DIR) Post #AwcNC82mZVmNUEDK52 by mcgrew@dice.camp
       2025-07-29T07:03:02Z
       
       0 likes, 0 repeats
       
       @foone I use this feature to break long strings across lines but yes I have also been bitten by it. I assume it came about because C also does this.
       
 (DIR) Post #AwcNh0qbNUta90F8Sm by foone@digipres.club
       2025-07-29T07:08:42Z
       
       1 likes, 0 repeats
       
       @jbqueru yeah but I expect C to be backwards and user-hostile, it's a portable assembler from 1972!
       
 (DIR) Post #AwcO0SuBHgLIfLC1Tc by a1ba@suya.place
       2025-07-29T07:12:35.761143Z
       
       0 likes, 0 repeats
       
       @foone for the language that's parsed from how you format it that's really annoying.
       
 (DIR) Post #AwcPAW74JPrfSsZtEu by GreenSkyOverMe@ohai.social
       2025-07-29T07:25:11Z
       
       0 likes, 0 repeats
       
       @foone @scream
       
 (DIR) Post #AwcQaRWO6e0ShvLZzc by TimWardCam@c.im
       2025-07-29T07:39:22Z
       
       0 likes, 0 repeats
       
       @foone @jbqueru And as such somewhat half-arsed - BCPL with (rather weird) types.I preferred just plan BCPL.Where you could do things like execute a string:"a carefully crafted string whose content in binary is the assembler instructions you want to run"()
       
 (DIR) Post #AwcQda46nSFe4gcFUG by f4grx@chaos.social
       2025-07-29T07:41:24Z
       
       0 likes, 0 repeats
       
       @foone @abstractcode JS dates in php, accepting brainfuck syntax.
       
 (DIR) Post #AwcUmo24dUe7oeJoS8 by foone@digipres.club
       2025-07-29T08:28:07Z
       
       0 likes, 0 repeats
       
       @AT1ST @mcgrew all! it's implemented in the parser
       
 (DIR) Post #AwcmJCxlBAXvcjKxiy by realcainmosni@mastodon.me.uk
       2025-07-29T11:44:18Z
       
       0 likes, 0 repeats
       
       @foone Python - the language that takes the lessons of the past and discards them.The errors of Fortran reborn.
       
 (DIR) Post #AwcreSHLvfwcyfS60u by gvlx@masto.pt
       2025-07-29T12:44:19Z
       
       0 likes, 0 repeats
       
       @foone So, what about "explicit is better than implicit"?