Simple and makes much more sense than Python's solution IMO: proc test(): int = return 1 proc main() = if (var x = test(); x) == 1: echo x main() Run
- How to implement a "Walrus" operator like in python 3... mrhdias
- Re: How to implement a "Walrus" operator like in... Araq
- Re: How to implement a "Walrus" operator lik... mrhdias
- Re: How to implement a "Walrus" operator... SolitudeSF
- Re: How to implement a "Walrus" oper... mrhdias
- Re: How to implement a "Walrus"... SolitudeSF
- Re: How to implement a "Walrus&q... miran
- Re: How to implement a "Walr... mashingan
- Re: How to implement a "Walr... miran
- Re: How to implement a "Walr... lucian