These are chat archives for liam4/tlnccuwagnf

16th
Mar 2016
The parser is broken again.
This message was deleted
hmmm
Seems it was a typo.
How are props set?
a.b => 3; isn't valid syntax.
Florrie
@towerofnix
Mar 16 2016 11:26 UTC
It isn't?
tests
Oh
a => obj();
a.x > "hi";
print(a.x);
Try that.
Note that there's no fat/thin arrow, just a short arrow.
Arthur
@kvackkvack
Mar 16 2016 14:15 UTC
Why though? :P
Useless extra syntax.
:package:
Makes parsing easier? I dunoo.
Arthur
@kvackkvack
Mar 16 2016 14:16 UTC
Probably. It can't be that hard though.
Florrie
@towerofnix
Mar 16 2016 14:16 UTC
It's all about the references :P
Arthur
@kvackkvack
Mar 16 2016 14:16 UTC
Huh?
Florrie
@towerofnix
Mar 16 2016 14:16 UTC
sets up quick docs
:musical_note: all about the references :musical_note:
Florrie
@towerofnix
Mar 16 2016 14:16 UTC
o_O
:musical_note: rms, he says: don't worry about the pointers :musical_note:
Arthur
@kvackkvack
Mar 16 2016 14:17 UTC
So > is the change operator here?
Florrie
@towerofnix
Mar 16 2016 14:18 UTC
-> is the change operator
Arthur
@kvackkvack
Mar 16 2016 14:18 UTC
where did the > come from then :(
Florrie
@towerofnix
Mar 16 2016 14:18 UTC
There's no difference between assigning and changing for objects though
so we use >
Arthur
@kvackkvack
Mar 16 2016 14:18 UTC
Ah.
I'd make it the change operator personally :P It's the most like what JS has (kind of)
@liam4 if functions have side effects, then they aren't functions but procedures...
Florrie
@towerofnix
Mar 16 2016 14:20 UTC
Well I use -> and => to make them completely distinct from each other.
@109C I suppose so. Most languages I've ever used can't tell the difference.
Arthur
@kvackkvack
Mar 16 2016 14:21 UTC
Side effects? What side effects do functions have here?
Modifying globals, reading globals, etc.
Florrie
@towerofnix
Mar 16 2016 14:21 UTC
Like changing variables outside of their inner-most scope.
Arthur
@kvackkvack
Mar 16 2016 14:21 UTC
Oh.
Procedures accessing things outside of the function scope makes resolving a pain.
still, it's possible to do.
Florrie
@towerofnix
Mar 16 2016 14:23 UTC
Resolving?
Finding what it actually means.
Florrie
@towerofnix
Mar 16 2016 14:25 UTC
Finding what the procedure/function means?
How else should we access data created (or changed) inside an if call?
Arthur
@kvackkvack
Mar 16 2016 14:27 UTC
Aren't "functions" in almost all high-level languages nowadays actually procedures then?
Yes.
Florrie
@towerofnix
Mar 16 2016 14:27 UTC
^^ that's what I'm thinking.
I can't think of a way to have fast closures. Anyone have any ideas?
Also couldn't if return the result?
Florrie
@towerofnix
Mar 16 2016 16:30 UTC
What if you want to change multiple things within the if?
Arthur
@kvackkvack
Mar 16 2016 16:30 UTC
^^
That would get horribly annoying after a while :P
Florrie
@towerofnix
Mar 16 2016 16:30 UTC
The simplest way to make a new closure is probably this:
fn() {
  # ... #
}();
I did consider making if return the result but like @kvackkvack said it would get really annoying after a while :P
Florrie
@towerofnix
Mar 16 2016 16:40 UTC
It says "take this function expression I just made and call it"
A working example:
a => 42;
fn() {
  a => 15;
  print(a);
}();
print(a);
Arthur
@kvackkvack
Mar 16 2016 16:42 UTC
fn() {
  print("take this function expression I just made and call it");
}();
No, that does.
:P
Florrie
@towerofnix
Mar 16 2016 16:42 UTC
...
lololol
:P
that is perfect
Alright, let me edit that -- It means "take this function expression I just made and call it"
Arthur
@kvackkvack
Mar 16 2016 16:43 UTC
xD
Florrie
@towerofnix
Mar 16 2016 17:14 UTC
@/all liam4/tlnccuwagnf@d56a4bf

Single quoted strings are now a thing

MrSherlockHolmes
@MrSherlockHolmes
Mar 16 2016 17:15 UTC
Nice.
Florrie
@towerofnix
Mar 16 2016 17:16 UTC
:D
Aaron Esau
@Arinerron
Mar 16 2016 23:04 UTC
@liam4 Hey. Do you think you could make a version of this that compiles to bytecode?
Florrie
@towerofnix
Mar 16 2016 23:04 UTC
Noooooooooooooooo :D
Aaron Esau
@Arinerron
Mar 16 2016 23:04 UTC
?
Florrie
@towerofnix
Mar 16 2016 23:05 UTC
That's an entire other project!
Aaron Esau
@Arinerron
Mar 16 2016 23:05 UTC
K
Why :‎D though? :P
Florrie
@towerofnix
Mar 16 2016 23:05 UTC
idk :D
Aaron Esau
@Arinerron
Mar 16 2016 23:05 UTC
OK I guess I'll just join :D
Florrie
@towerofnix
Mar 16 2016 23:05 UTC
Great idea :D
Aaron Esau
@Arinerron
Mar 16 2016 23:05 UTC
This is so pointless :D
Florrie
@towerofnix
Mar 16 2016 23:06 UTC
IKR :D
Aaron Esau
@Arinerron
Mar 16 2016 23:06 UTC
Yeah, you do :D
Oh wait, do you? :D
Florrie
@towerofnix
Mar 16 2016 23:06 UTC
I think so :D
Aaron Esau
@Arinerron
Mar 16 2016 23:06 UTC
That's a good thing :D
How's progress on tlnccuwagnf? :D
Florrie
@towerofnix
Mar 16 2016 23:07 UTC
Ideas?
Aaron Esau
@Arinerron
Mar 16 2016 23:07 UTC
What in the world? Autocorrect says that's a valid word that exists... :D
Florrie
@towerofnix
Mar 16 2016 23:07 UTC
Today I added support for single quoted strings :P
tlnccuwagnf -- nope, not for me :P
Aaron Esau
@Arinerron
Mar 16 2016 23:08 UTC
QUICK EDIT YOUR MESSAHES TO ADD IT IN :D
Florrie
@towerofnix
Mar 16 2016 23:08 UTC
FYI liam4/tlnccuwagnf@d56a4bf
Well it doesn't autocomplete to anything so I'm not worried :P
Aaron Esau
@Arinerron
Mar 16 2016 23:08 UTC
To add the :‎D in :D
Florrie
@towerofnix
Mar 16 2016 23:08 UTC
It's annoying when I reference a character from a book called Starflight
and it autocomplets to starlight.
So I added Starflight to my dictionary
But tlnccuwagnf doesn't autocomplete to anything :P
Aaron Esau
@Arinerron
Mar 16 2016 23:08 UTC
xD :D
Florrie
@towerofnix
Mar 16 2016 23:08 UTC
:D
You know, I was pretty sure that one CAD is like less than two USDs
Aaron Esau
@Arinerron
Mar 16 2016 23:10 UTC
... :D
Florrie
@towerofnix
Mar 16 2016 23:10 UTC
Oh well :P
Aaron Esau
@Arinerron
Mar 16 2016 23:12 UTC
You broke the chain... :( :D
Florrie
@towerofnix
Mar 16 2016 23:12 UTC
:( :D