3 ms·
But not really a pythonic syntax. Reminds me more of ruby? i.e.: > 2.times! do!:
by nope96 4y ago
But not really a pythonic syntax. Reminds me more of ruby? i.e.:
> 2.times! do!:
- mattbillenstein 4y agoSame, this just seems soooo very ugly imho
- Zomatree 4y agoThis is what is putting me off the most of this, the syntax feels very unreadable for something that is meant for python, which has a very readable and open syntax, even typescript's sometimes messy typing is for the most part more readable than this
- turboponyy 4y agoTo provide some rationale, the '!' syntax distinguishes declarations from imperative constructs or effectful statements. You will see similar syntactic sugar in Haskell (do notation), F# (computation expressions), and probably others - they are often abstractions for specific monad-wrangling patterns, and won't look out of place for many in a more functional-style language.