califax has quit [Remote host closed the connection]
califax has joined #openscad
califax_ has joined #openscad
califax has quit [Remote host closed the connection]
califax_ is now known as califax
chadmoller has joined #openscad
<chadmoller>
Hello! I have seen references to using a let clause to achieve multiple line functions, but I haven't seen any example code. Does anyone have example source I could look at? I really appreciate your time!
<InPhase>
chadmoller: There are some wild functions in that one. :)
<chadmoller>
PERFECT!! Thank you InPhase
<InPhase>
chadmoller: That was peeps[zen] and I playing around with possibilities back when we first got function literals.
LordOfBikes has quit [Ping timeout: 260 seconds]
<chadmoller>
This is exactly what I was looking for!!! Some examples of people pushing the language. I was running into some walls and couldn't quite sort the syntax!
<InPhase>
chadmoller: My most recent commit to that was csv_parse
<InPhase>
It turns a string of comma separated float values, into a list of floats, including support for exponential notation.
<InPhase>
chadmoller: It is a beautiful attrocity of code! But that is exactly what it was about, pushing the language.
<InPhase>
s/attrocity/atrocity/
<chadmoller>
I'm eating this up! I can see my mistake with my "let" syntax.
<chadmoller>
Obviously I'm trying to keep my code as simple as possible but I have a few edge cases that I was fighting
<chadmoller>
Even with the typo, I figured out what you sed
<InPhase>
Note that "let" is pretty important inside list comprehensions as well.
<chadmoller>
Scoping blocks often play a major role in functional languages. Not surprised to see that emerge here as well. Now that i have some more diversity of examples I can extrapolate for there
<InPhase>
chadmoller: I remember the snowballs, third in from the left on the 2021 calendar, were full of let statements as well. https://openscad.org/advent-calendar-2021/
<chadmoller>
(y)
LordOfBikes has joined #openscad
chadmoller has quit [Quit: Client closed]
mmu_man has quit [Ping timeout: 272 seconds]
snaked has joined #openscad
foul_owl has quit [Read error: Connection reset by peer]
peeps[zen] has quit [Read error: Connection reset by peer]
peepsalot has joined #openscad
foul_owl has joined #openscad
foul_owl has quit [Ping timeout: 272 seconds]
J23k26 has joined #openscad
J23k13 has quit [Ping timeout: 246 seconds]
foul_owl has joined #openscad
clemens3 has quit [Ping timeout: 245 seconds]
qeed_ has quit [Quit: qeed_]
qeed has joined #openscad
misterfish has joined #openscad
clemens3 has joined #openscad
guso78_ has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
misterfish has quit [Ping timeout: 252 seconds]
noonien has quit [Ping timeout: 250 seconds]
hypera1r has quit [Remote host closed the connection]
hyperair has joined #openscad
J23k26 has quit [Quit: Client closed]
J23k26 has joined #openscad
misterfish has joined #openscad
guso78_ has quit [Quit: Client closed]
J23k26 has quit [Quit: Client closed]
J23k26 has joined #openscad
mmu_man has joined #openscad
snaked has quit [Quit: Leaving]
mmu_man has quit [Ping timeout: 272 seconds]
mmu_man has joined #openscad
L29Ah has quit [Ping timeout: 264 seconds]
L29Ah has joined #openscad
e2k has quit [Ping timeout: 252 seconds]
e2k has joined #openscad
Guest61 has joined #openscad
Guest61 has quit [Client Quit]
guso78_ has joined #openscad
GNUmoon2 has joined #openscad
GNUmoon has quit [Ping timeout: 240 seconds]
mmu_man has quit [Ping timeout: 245 seconds]
mmu_man has joined #openscad
ToAruShiroiNeko has quit [Ping timeout: 240 seconds]
ToAruShiroiNeko has joined #openscad
ToAruShiroiNeko has quit [Ping timeout: 246 seconds]