Page 3 of 3
Re: Alternative to PUT value INTO variable
Posted: Tue Sep 25, 2018 3:00 am
by mwieder
Heh. How about "==="?
Re: Alternative to PUT value INTO variable
Posted: Tue Sep 25, 2018 7:35 am
by FourthWorld
mwieder wrote: Tue Sep 25, 2018 3:00 am
Heh. How about "==="?
I'm on board if we can nest them like parentheses in LISP.

Re: Alternative to PUT value INTO variable
Posted: Tue Sep 25, 2018 6:12 pm
by bogs
Myself, I can't wait till we see them introduce this symbol ~
(<>.(<>.,<>)>.,<>)
Re: Alternative to PUT value INTO variable
Posted: Tue Sep 25, 2018 6:54 pm
by FourthWorld
bogs wrote: Tue Sep 25, 2018 6:12 pm
Myself, I can't wait till we see them introduce this symbol ~
(<>.(<>
.,<>)
>.,<>)
Now you're talking. But maybe we can spice it up with required white space that changes the meaning of the statement if you change the placement of a space character, as folks enjoy with Python.

Re: Alternative to PUT value INTO variable
Posted: Tue Sep 25, 2018 7:45 pm
by mwieder
Yah, that's the one thing that bugs me about python programming. But a good IDE will enforce proper indentation to help keep you out of trouble.
... and don't forget ruby's spaceship operator (<=>). It's actually a very useful operator, and one that would help solve a lot of the numeric/string comparisons in LC.
Code: Select all
https://subvisual.co/blog/posts/90-ruby-bits-br-spaceship-operator/
Re: Alternative to PUT value INTO variable
Posted: Tue Sep 25, 2018 9:02 pm
by bogs
mwieder wrote: Tue Sep 25, 2018 7:45 pm
ruby's spaceship operator (<=>)
Don't forget the Conan operator ( cssssss{|;;;;;;;;;;;;;;;;;;;> ) which makes sushi out of your code in any language

Re: Alternative to PUT value INTO variable
Posted: Wed Jan 16, 2019 10:42 pm
by bogs
I was doodling around today and had to reset a number of variables manually to "". I was thinking how nice it would be in this one use-case to be able to do that just by writing something like ~
Code: Select all
put "" into (tmp1) and (tmp2) and (tmp3) and...
or even
Code: Select all
set the value of tmp1 and tmp2 and tmp3 to ""
<sigh>

Re: Alternative to PUT value INTO variable
Posted: Wed Jan 16, 2019 10:57 pm
by FourthWorld
bogs wrote: Wed Jan 16, 2019 10:42 pm
I was doodling around today and had to reset a number of variables manually to "". I was thinking how nice it would be in this one use-case to be able to do that just by writing something like ~
Code: Select all
put "" into (tmp1) and (tmp2) and (tmp3) and...
or even
Code: Select all
set the value of tmp1 and tmp2 and tmp3 to ""
<sigh>
Such a large number of variables handled uniformly suggests a good case for an array, where emptying all of its slots is an even shorter one-liner.
Re: Alternative to PUT value INTO variable
Posted: Thu Jan 17, 2019 12:02 am
by bogs
Yah, was already thinking along those lines, but good to have confirmation
