Mar 1, 2019 20:43
Who's going to delete all of the Q's closed as duplicate pointing at a closed Q?
 
Nov 23, 2016 16:19
Boo!
8
Apr 11, 2016 13:55
Imagine static XmlConfigReader vs DbConfigReader being passed swappably or other such
Apr 11, 2016 13:53
The thing to remember is with typeclasses i- interfaces are only concerned with methods, not types. This opens interesting ideas like you could impl one on a static type and pass those around through genericconstraints as Type T because they aren't instances - but then you get swappable static calls
Apr 11, 2016 13:49
kn Mobil keyboard.
Apr 11, 2016 13:49
The. More i think about it the more I realize I'm just describing type classes because you can impl there instance in the type def too with certain syntax similar to the instance syntax outside the type def
Apr 11, 2016 13:47
r some syntactic indication that's nicely fitting the rest of the language
Apr 11, 2016 13:46
ested I the class, outside you do istance Bar is IFoo
Apr 11, 2016 13:46
nstance IFoo {}
Apr 11, 2016 13:46
ould do that inside a class or outside
Apr 11, 2016 13:45
You could have a syntactic structure demanding a grouping of interface methods so you expect them all in one place for each interface- like the instance creation in Haskell
Apr 11, 2016 13:44
You can just create interface impls for any type anywhere. The compiler just has to verify if one method says it imls part of a contract that after all is parsed it can find the rest of the contracts parts to match that one part
Apr 11, 2016 13:42
Think again about type classes and how the type never states it's type classes- well I guess the derives is a nice feature but totally unnecessary
Apr 11, 2016 13:41
This is probably a greater problem with the IL than anything because it requires class definitions to state their contracts huh?
Apr 11, 2016 13:35
You would get rid of the interface|sum type confusion in the grammar, and make extension methods and Su types able to tie a type to a contract with identical fashion as the class internal impl approach so it would be consistent across the board
Apr 11, 2016 13:33
You know how on explicit interface impl in c# you annotate a method to say it impls Ifoo.Bar? Imagine that without the class annotation for the interface
Apr 11, 2016 13:28
Makes it so you never have to ponder how or where to do it or how. You just do it on the methods that are part of the contract
Apr 11, 2016 13:24
Iduno, I would prefer the consistency of only method level interface declarations so for all types and techniques- in or out of the actual class impl, on a Su type or not, it's always done with the same method annotations only
Apr 11, 2016 13:20
You could use that operator at method level for them to dictate they're adding a piece ofa contract. Have to check they completed the whole contract at compile though
Apr 11, 2016 13:17
o you intend to remove the interface declaration from the class top with:<
Apr 11, 2016 13:15
lus you could do stuff like impl the interface by extension methods, or on static types or sum types
Apr 11, 2016 13:14
You could even then implement the interface on methods with different names than the interface dictates by having them say they implement IFoo.bar while being named baaz
Apr 11, 2016 13:13
@Telastyn cool blog, though the thing I love about typeclasses is it decouples the interface definition from the type implementing it. You might ponder putting the interface on the methods instead of the class- like how in C# you can do explicit interface implementation where the method says its fulfilling part of an interface- having a note on the method and not on the class itself. This would also clean the grammar where you have sum types at the top of the class
Apr 8, 2016 23:09
@psr thanks; you should drop an e-mail in a deleted message at some point. Or just a github account at least
Mar 16, 2016 00:07
actually you may be right; now that I think about it the auth for chat goes through SE
Mar 16, 2016 00:06
@Snowman SE chat is a completely separate system; that said he may still have that wiped too
Mar 16, 2016 00:05
@whatsisname robots need to go to library's too!
Mar 16, 2016 00:05
@whatsisname well, you are a grouch..
Mar 15, 2016 21:00
git clone self - AND NOW THERE ARE TWO JIMMIES! :D
Mar 15, 2016 21:00
@BarryTheHatchet that would be awesome!
Mar 15, 2016 21:00
@BarryTheHatchet sure, but your fork will be promptly ignored; you don't get a say. That's the whole point. You get to pick from the list, but not create it.
Mar 15, 2016 20:59
@AaronHall and now you know. Control the chunks ftw. Anytime I have to deal with that sort of crap I typically find myself making chunk sizes configurable because different input sets always end up working best with differing chunk sizes
Mar 15, 2016 20:57
@BarryTheHatchet Jimmy installing leiningen
Mar 15, 2016 20:56
@BarryTheHatchet add, replace, whatever, the revisions are all related and traversable. Preferably everything would be in latest revision
Mar 15, 2016 20:25
I guess we should just start calling your nameless now
Mar 15, 2016 20:25
Edit a fork to submit choices for Lightness' April name here
4
Mar 15, 2016 20:22
err edit or whatever
Mar 15, 2016 20:22
(forking gist just means push the button to create your own fork, and edit the text)
Mar 15, 2016 20:21
Barry's April name
Mar 15, 2016 20:21
@enderland add a name or 2 to the nomination list by way of fork: gist.github.com/JimmyHoffa/78ee16ad42ba4d0c5e93
Mar 15, 2016 20:18
Fiddling with Scala feels like C#++
Mar 15, 2016 20:16
But I am about to enjoy getting spacemacs and clojure and scala all tying up with eclim since I made the codes good 'n dones
Mar 15, 2016 20:16
Nope; I don't have a clue what you're talking about
Mar 15, 2016 19:56
@BarryTheHatchet go dig around the edits on P.SE sometime- you'll find some thoroughly unexpected oddities..
Mar 15, 2016 19:41
@AaronHall fact: both these states are actually synonymous.
Mar 15, 2016 19:40
"fk; I'm going to have to do the testing and or disassembly myself to figure out the answer, nobody the hell else will know..."
Mar 15, 2016 19:40
@enderland hah, that point always kinda blows. Whenever I have a genuine C# question it's just irritating
Mar 15, 2016 19:39
@AaronHall Perhaps there was a prompt waiting on stdin that printed to some invisible stdout pipe
Mar 15, 2016 19:23
It's exact same concept as a file-based merge sort which is what a merge sort is for: sorting large amounts of information when you've got very little memory to hold it in