These are chat archives for liam4/tlnccuwagnf

16th
Mar 2016
109C
@109C
Mar 16 2016 00:32
The parser is broken again.
109C
@109C
Mar 16 2016 00:58
This message was deleted
hmmm
Seems it was a typo.
109C
@109C
Mar 16 2016 01:45
How are props set?
a.b => 3; isn't valid syntax.
Florrie
@towerofnix
Mar 16 2016 11:26
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
Why though? :P
Useless extra syntax.
:package:
109C
@109C
Mar 16 2016 14:16
Makes parsing easier? I dunoo.
Arthur
@kvackkvack
Mar 16 2016 14:16
Probably. It can't be that hard though.
Florrie
@towerofnix
Mar 16 2016 14:16
It's all about the references :P
Arthur
@kvackkvack
Mar 16 2016 14:16
Huh?
Florrie
@towerofnix
Mar 16 2016 14:16
sets up quick docs
109C
@109C
Mar 16 2016 14:16
:musical_note: all about the references :musical_note:
Florrie
@towerofnix
Mar 16 2016 14:16
o_O
109C
@109C
Mar 16 2016 14:17
:musical_note: rms, he says: don't worry about the pointers :musical_note:
Arthur
@kvackkvack
Mar 16 2016 14:17
So > is the change operator here?
Florrie
@towerofnix
Mar 16 2016 14:18
-> is the change operator
Arthur
@kvackkvack
Mar 16 2016 14:18
where did the > come from then :(
Florrie
@towerofnix
Mar 16 2016 14:18
There's no difference between assigning and changing for objects though
so we use >
Arthur
@kvackkvack
Mar 16 2016 14:18
Ah.
I'd make it the change operator personally :P It's the most like what JS has (kind of)
109C
@109C
Mar 16 2016 14:20
@liam4 if functions have side effects, then they aren't functions but procedures...
Florrie
@towerofnix
Mar 16 2016 14:20
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
Side effects? What side effects do functions have here?
109C
@109C
Mar 16 2016 14:21
Modifying globals, reading globals, etc.
Florrie
@towerofnix
Mar 16 2016 14:21
Like changing variables outside of their inner-most scope.
Arthur
@kvackkvack
Mar 16 2016 14:21
Oh.
109C
@109C
Mar 16 2016 14:22
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
Resolving?
109C
@109C
Mar 16 2016 14:25
Finding what it actually means.
Florrie
@towerofnix
Mar 16 2016 14:25
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
Aren't "functions" in almost all high-level languages nowadays actually procedures then?
109C
@109C
Mar 16 2016 14:27
Yes.
Florrie
@towerofnix
Mar 16 2016 14:27
^^ that's what I'm thinking.
109C
@109C
Mar 16 2016 15:15
I can't think of a way to have fast closures. Anyone have any ideas?
109C
@109C
Mar 16 2016 15:25
Also couldn't if return the result?
Florrie
@towerofnix
Mar 16 2016 16:30
What if you want to change multiple things within the if?
Arthur
@kvackkvack
Mar 16 2016 16:30
^^
That would get horribly annoying after a while :P
Florrie
@towerofnix
Mar 16 2016 16:30
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
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
fn() {
  print("take this function expression I just made and call it");
}();
No, that does.
:P
Florrie
@towerofnix
Mar 16 2016 16:42
...
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
xD
Florrie
@towerofnix
Mar 16 2016 17:14
@/all liam4/tlnccuwagnf@d56a4bf

Single quoted strings are now a thing

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