Viewing profile — kilink
kilink
HN member- Joined
- Sat, Aug 13, 2011, 3:53 PM UTC
- HN karma
- 102
- Public activity
- 59 items
- HN profile
- View on Hacker News ↗
About kilink
Recent public activity
- story
- story
- story
-
comment
Comment #13437117
They mentioned msgpack was calling gc.enable(), but it looks like that issue was fixed quite a while ago in version 0.2.2: https://github.com/msgpack/msgpack-python/blob/2481c64cf1…
-
comment
Comment #12573181
Maybe they mean data class inheritance, instead of subclassing? That's the only thing I know of that is planned for Kotlin 1.1 [1], and it's primarily useful for sealed classes (I'…
-
comment
Comment #12379140
I think the advice is more relevant in the context of the specific language; it's not universal. In python you can go from attribute access to using a property (getter/setter) with…
-
comment
Comment #12324989
...Or can you? import ctypes def tuple_setitem(t, index, item): obj = ctypes.py_object(t) item = ctypes.py_object(item) ref_count = ctypes.c_long.from_address(id(t)) original_count…
-
comment
Comment #12324888
I'm not sure if you are asking about Python, or Ruby. Anyway, both languages use value-based hashing for dictionaries. I am not a Rubyist, but I guess you are just expected to not …
-
comment
Comment #12324756
This is a Python specific restriction. Ruby for example allows mutable keys in dictionaries.
- story
- story
-
comment
Comment #12183724
What about null?
- comment
-
comment
Comment #11842832
I'm not sure what you mean by error values being dropped on the floor by default. In Go or languages with ADTs you would have to consciously ignore an exception. Languages where pa…
-
comment
Comment #11842789
I was addressing your specific assertion with regard to encoding error conditions as reserved values in your return type's codomain, which I agree is ugly. One benefit of not throw…
-
comment
Comment #11842551
> The problem usually is: What is the error code if your return type is int? Sure, you can define all negative ints as errors, or you provide a reference which is set when an error…
-
comment
Comment #11551498
Things I dislike about Ion, having used it while at Amazon: - IonValues are mutable by default. I saw bugs where cached IonValues were accidentally changed, which is easy to do: Io…
-
comment
Comment #11384350
That also wouldn't even compile. I also write in multiple languages, and for languages for which this is an issue I use a linter. This isn't even an issue in C if you compile every…
-
comment
Comment #11383606
Sorry, it's just not practical to keep lines under 80 characters in some languages.
-
comment
Comment #11383584
For me it's not that it's confusing, it's annoying to read because it indicates that the programmer didn't actually take the time to learn the language, and is instead writing it a…
-
comment
Comment #11383554
Java if statements only allow boolean expressions, so the thing that the Yoda condition is supposed to protect against isn't even possible. I think this is precisely what the autho…
- story
- story
- story
- story