<crystal-gh>
[crystal] asterite pushed 2 new commits to master: https://git.io/viaPc
<crystal-gh>
crystal/master 753ee6c Ary Borenszweig: Compiler: lift the restriction that top-level type names can't be named with single letters. Fixes #3269
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: https://git.io/viwJ9
<crystal-gh>
crystal/master 803a20f Ary Borenszweig: Fixed `Time#-` to handle different kinds. Fixes #3307
Oliphaunte has quit [Remote host closed the connection]
grindhold has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
balduin has quit [Ping timeout: 248 seconds]
kulelu88 has quit [Ping timeout: 248 seconds]
mark_66 has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
grindhold has joined #crystal-lang
kulelu88 has joined #crystal-lang
pawnbox has joined #crystal-lang
Ven_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
pawnbox has joined #crystal-lang
<Papierkorb>
StaticArray does not require its elements to be initialized: `pp StaticArray(String, 4).new` which leads to a crash upon access. Crystal 0.19 - Is this "intended"?
<DeBot>
BlaXpirit: private method 'new' called for StaticArray(T, N):Class - https://carc.in/#/r/19mu
<Papierkorb>
> private method 'new' called for StaticArray(T, N):Class>
<BlaXpirit>
yay
<Papierkorb>
Yep that fixes it
<Papierkorb>
As in, doesn't break the existing new methods :P
<asterite>
Hehe, cool, I was going to add a `private iniitalize`, then I enter here and see you got to the same solution :-)
<BlaXpirit>
so who's working on a fix in the end?
<Papierkorb>
I could create a PR
<asterite>
Me, unless you started something
<Papierkorb>
gotta start somewhere I guess
<asterite>
(but some compiler specs break and they need to change, so if you don't mind I can try to fix it, it's really simple)
<Papierkorb>
is # :nodoc: okay for that one?
<BlaXpirit>
Papierkorb, yes, if it's even needed. it's private
<asterite>
private already hides it
<Papierkorb>
ah okay then
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
balduin has joined #crystal-lang
<Papierkorb>
Running `.build/crystal spec` (after I re-make-d it) will not use the libs of my system installation of crystal, right?
<BlaXpirit>
Papierkorb, will not use
<BlaXpirit>
however you should not run .build/crystal, it's problematic
<BlaXpirit>
bin/crystal is a wrapper around it with some magic to make things just work
<Papierkorb>
OT: Is there a heap-backed fixed-length array? I really just need `class StaticArray` instead of a struct
<Papierkorb>
Have lots of fixed length structures here and an Array could get me to accidentally append an item or something which would break things real bad ;)
<BlaXpirit>
Papierkorb, just make a class wrapper
<Papierkorb>
Thought so too. Is there a macro already? OTOH, I really just need #[] and #[]= ...
<BlaXpirit>
class FixedArray(T, N); @a : StaticArray(T, N); forward_missing_to @a; end
<m4t>
I'm getting a « EVP_CipherFinal_ex: error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length (OpenSSL::Cipher::Error) »
<asterite>
I thought it would involve fixing some compiler specs, but in the end that didn't happen because compiler specs don't require prelude in most cases
<asterite>
Papierkorb: I don't know if there's a barrier for adding a static array in the heap, it's just that in that case I'd use Slice and it'll be almost exactly the same
<Papierkorb>
Which editors do y'all use for writing code?
<BlaXpirit>
Kate
<Papierkorb>
After a few months now, I must say I'm rather disappointed by Atom-editor. On the plus side, the integration in crystal stuff and rubocop etc. are nice. On the downside .. everything else
<Papierkorb>
I'd go back to Kate in an instant if it had Rubocop integration at least
<Papierkorb>
Used it for years before BlaXpirit
<BlaXpirit>
lol it's actually terrible for crystal
<BlaXpirit>
ruby highlighting is so broken and crystal triggers it even worse
<Papierkorb>
BlaXpirit: I just set Kate up to recognize Crystal sources as ruby for code highlighting..
<BlaXpirit>
oh u have a slash in your code? wow, what a big unterminated regular expression you have!
<BlaXpirit>
%} starts a string literal
<Papierkorb>
Seriously, we have 2016, how are code editors still an unsolved issue?
<Papierkorb>
Is KDevelops ruby support the same as Kate has? Or does it come with its own highlighter?
<FromGitter>
<drosehn> I'm actually rather impressed at the capability of modern code editors. That said, there isn't any one which works exactly the way I'd want it to work. :)
<Papierkorb>
Well, Atom right now is too stupid to see that I edited an file while it was closed, causing it to display old data, and I can't find a way to clear this cache by hand
<BlaXpirit>
kate is soooooo goooood at that
<Papierkorb>
So this is a dealbreaker. It's an editor. it reads and writes files. If it's not capable of doing that...
<BlaXpirit>
oh wait, i think i misunderstood
<FromGitter>
<drosehn> I use Apple
<FromGitter>
<drosehn> <oops>
<FromGitter>
<drosehn> I use Apple's Xcode, mainly because I've been using it for many many years so I'm used to it. But it doesn't know crystal by default, so every time I open a crystal file I have to select "syntax coloring/ruby". This is getting annoying.
<FromGitter>
<drosehn> So I'm tending to use Sublime Text 3 for crystal source. It's nice in some ways, but there are some aspects of it that are a little irritating for me (simply because I'm used to Xcode). At the moment I can't think what those are.
<FromGitter>
<drosehn> I've tried Atom, and again there are some things I like about it, but other things which frustrate me. So I tend to prefer ST3 over Atom. It's possible that I could customize either one of those to behave more like I want them to behave, but I don't have the time (right now) to learn how to do that.
mgarciaisaia has joined #crystal-lang
soveran has quit [Remote host closed the connection]
mgarciaisaia has left #crystal-lang [#crystal-lang]