ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
ur5us_ has joined #crystal-lang
notzmv has quit [Ping timeout: 252 seconds]
notzmv has joined #crystal-lang
notzmv has quit [Ping timeout: 268 seconds]
ur5us_ has quit [Ping timeout: 240 seconds]
notzmv has joined #crystal-lang
ur5us_ has joined #crystal-lang
hightower2 has joined #crystal-lang
ur5us_ has quit [Ping timeout: 256 seconds]
ur5us_ has joined #crystal-lang
ur5us_ has quit [Ping timeout: 252 seconds]
wolfshappen has quit [Quit: later]
wolfshappen has joined #crystal-lang
wolfshappen has quit [Quit: later]
wolfshappen has joined #crystal-lang
wolfshappen has quit [Ping timeout: 240 seconds]
wolfshappen has joined #crystal-lang
<riza> is there a technique to use a fresh variable esque syntax to generating a class?
<FromGitter> <Blacksmoke16> not w/o getting super hacky :P
hightower2 has quit [Ping timeout: 240 seconds]
<riza> I kind of just want an anonymous class
<riza> I don't really need a handle to it
hightower2 has joined #crystal-lang
<yxhuvud> What is your use case?
<riza> just some crappy code that runs itself
<FromGitter> <Blacksmoke16> use a proc?
<riza> i made a dsl that generates classes, and a parent class that calls a function on each of the subclasses at_exit
<FromGitter> <Blacksmoke16> ```{% for c in ParentClass.all_subclasses %} ⏎ {{c.id}}.a_function ⏎ {% end %}``` [https://gitter.im/crystal-lang/crystal?at=61c0d177fd9244223e562d19]
<riza> each class aggregates a bbunch of stuff that needs to be run in an order, independently from the other classes
<riza> oh that's nice, I'd just made a const array and << on inherited
<FromGitter> <Blacksmoke16> could also use annotations to control the order via sorting
<riza> I don't like annotations
<FromGitter> <Blacksmoke16> :shrug: oh well
<riza> nothing against athena :heart:
<riza> just not my style
<FromGitter> <Blacksmoke16> thats like saying "i dont like blocks"
<riza> well, i'ts like saying "I don't like blue blocks" thats for sure
<FromGitter> <Blacksmoke16> are missing out of some nice lang features
<riza> there's no accounting for taste
<riza> they have their uses...@deprecated, for example
<FromGitter> <Blacksmoke16> yes thats what they're for :P annotating things
<FromGitter> <Blacksmoke16> you can deff over use them, but they can come in handy in certain cases
ur5us_ has joined #crystal-lang
notzmv has quit [Ping timeout: 268 seconds]
sagax has quit [Ping timeout: 250 seconds]
hightower2 has quit [Ping timeout: 252 seconds]
notzmv has joined #crystal-lang
hightower2 has joined #crystal-lang
hightower2 has quit [Ping timeout: 240 seconds]
ur5us_ has quit [Ping timeout: 240 seconds]