8 months ago • •
that’s actually a really cool trick — the many with-usages (like locks!) are a huge boon to understandable code.
And while it took me 25 lines of code to implement this with with wisp ( https://hg.sr.ht/~arnebab/wisp/browse/examples/with.w?rev=3447d48e85620c639131c0e1b47308503df5eb81#L12 ) it’s only Python where that’s the default way to do things.
(there is no superfluous with in the previous paragraph ☺)
Being able to add stuff like this to the language cleanly is why I started to move my personal projects from #Python to #Guile #Scheme in 2013, though.
Lo, thar be cookies on this site to keep track of your login. By clicking 'okay', you are CONSENTING to this.
Twaha Rahman
in reply to Brodie Robertson • • •Emergency Luna Ielenia :neocat_flag_ace:
in reply to Brodie Robertson • • •Brodie Robertson
in reply to Emergency Luna Ielenia :neocat_flag_ace: • • •Mangdries
in reply to Brodie Robertson • • •Brodie Robertson
in reply to Mangdries • • •Cow
in reply to Brodie Robertson • • •Arne Babenhauserheide
in reply to Brodie Robertson • • •that’s actually a really cool trick — the many with-usages (like locks!) are a huge boon to understandable code.
And while it took me 25 lines of code to implement this with with wisp ( https://hg.sr.ht/~arnebab/wisp/browse/examples/with.w?rev=3447d48e85620c639131c0e1b47308503df5eb81#L12 ) it’s only Python where that’s the default way to do things.
(there is no superfluous with in the previous paragraph ☺)
Being able to add stuff like this to the language cleanly is why I started to move my personal projects from #Python to #Guile #Scheme in 2013, though.
~arnebab/wisp - sourcehut hg
hg.sr.htBoreal
in reply to Brodie Robertson • • •