|
Lutha Mahtin posted:is this the name for the thing like in python where if you make a call with one of the optional parameters, you have to label it. no, it's the thing where the value 0 and "nothing" are no longer conflated the standard library has code:
and there's syntactic shorthand for it like code:
the Int? return type is shorthand for Optional<Int> and nil is shorthand for .None to unwrap an optional you assign it in an if let construct where the variable is valid in the body which is only executed if the value is non-nil (or use guard let which doesn't require nesting scope), or you can force-unwrap it with ! but your program will abort if the value is actually nil this means that you're forced to be clear in your code everywhere you could actually wind up propagating a "nothing" rather than just silently and obscurely failing
|
# ? Jan 21, 2016 22:08 |
|
|
# ? May 24, 2024 14:41 |
|
vodkat posted:just out of curiosity whats the yospinion on swift? its crap for idiots same as objc.
|
# ? Jan 21, 2016 23:15 |
|
apple didn't want to use java or c# cause nih.
|
# ? Jan 21, 2016 23:18 |
|
Python code:
|
# ? Jan 21, 2016 23:29 |
|
python is so gross
|
# ? Jan 21, 2016 23:31 |
|
Pycharm freaks if you do the infix poo poo because of pep 8 gently caress you too, python
|
# ? Jan 21, 2016 23:36 |
|
lol i'm getting flamed on our internal mailing list for asserting that email is a bad medium for discussions taking place between many individuals
|
# ? Jan 22, 2016 00:10 |
|
yo tef where is that list what a library says vs what it means and is "high-performance" on it.
|
# ? Jan 22, 2016 00:41 |
|
if not it should mean "handles our problem"
|
# ? Jan 22, 2016 00:41 |
|
MALE SHOEGAZE posted:lol i'm getting flamed on our internal mailing list for asserting that email is a bad medium for discussions taking place between many individuals mailing lists are absolutely retarded which makes them perfect for Linux.
|
# ? Jan 22, 2016 00:44 |
|
"ask the mailing list" is the absolute worst response for requests for help. atleast create yourself a stack overflow or a forums.
|
# ? Jan 22, 2016 00:46 |
|
years of arguing here and elsewhere on the internet has left my email persona unfit for general discussion
|
# ? Jan 22, 2016 00:51 |
|
MALE SHOEGAZE posted:lol i'm getting flamed on our internal mailing list for asserting that email is a bad medium for discussions taking place between many individuals lol
|
# ? Jan 22, 2016 00:57 |
|
i always wanted to overload an operator in python to do one thing 99% of the time but 1% of the time it does something else. that would be a fun bug to track down
|
# ? Jan 22, 2016 01:19 |
|
Shaggar posted:mailing lists are absolutely retarded which makes them perfect for Linux. http://lkml.iu.edu/hypermail/linux/kernel/0908.3/01481.html Dev 1: Personally, I care about metadata consistency, and ext3 documentation suggests that journal protects its integrity. Except that it does not on broken storage devices, and you stil need to run fsck there. Dev 2: as the ext3 authors have stated many times over the years, you still need to run fsck periodicly anyway. Dev 1: Where is that documented? Dev 2: linux-kernel mailing list archives. Dev 3: Probably from some 6-8 years ago, in e-mail postings that I made.
|
# ? Jan 22, 2016 02:01 |
|
Thanks Dan Luu.
|
# ? Jan 22, 2016 02:02 |
|
Blinkz0rz posted:why the gently caress wouldn't you just use max(a, b) and a + b instead of trying to be clever the only place it gets used us in things like "loop over all the things on a container and score a function on them and what's the worst" which I found myself doing a ton of so that's the max part and I think I put the sum part in for some drat fool reason I can't remember right now
|
# ? Jan 22, 2016 04:04 |
|
swift is basically the best language right now and my only regret is that it is realistically confined to iOS development for the time being it has learned from the mistakes of language designers in the 90s and early 2000s and made important improvements that are only possible by creating a new language from scratch.
|
# ? Jan 22, 2016 04:22 |
|
why isn't it good for osx?
|
# ? Jan 22, 2016 04:36 |
|
actually, c# is the best language
|
# ? Jan 22, 2016 04:42 |
|
swift is really good from the playing around i've done.
|
# ? Jan 22, 2016 04:42 |
|
triple sulk posted:actually, c# is the best language i literally cannot quote this enough even if the loving value types are hosed up garbage and the boxed value types are still also hosed up garbage
|
# ? Jan 22, 2016 04:47 |
|
truly incredible that it took nearly 40 years for a language, swift, to be as good as C
|
# ? Jan 22, 2016 05:26 |
|
c# would be better if it was more universal I hope swift eats golangs lunch eventually tho because that's a real dumpster fire
|
# ? Jan 22, 2016 05:39 |
|
uncurable mlady posted:c# would be better if it was more universal its gettin there
|
# ? Jan 22, 2016 05:42 |
|
golang does have gofmt, so that's cool, and channels are kind of neat i guess? still wouldn't want to write in it though
|
# ? Jan 22, 2016 05:51 |
|
go is really really really bad
|
# ? Jan 22, 2016 05:51 |
|
fleshweasel posted:swift is basically the best language right now and my only regret is that it is realistically confined to iOS development for the time being there are a lot of cool things in swift but i would honestly trust microsoft more to run a free programming language project in which "community" stakeholders are ever even listened to. not that apple is evil, they just seem to have a very lazy and self serving approach to a lot of the open source projects that power their poo poo, only putting in the bare minimum of effort to ensure needed features and an advantageous development plan
|
# ? Jan 22, 2016 05:54 |
|
paging rjmccall
|
# ? Jan 22, 2016 06:03 |
|
MALE SHOEGAZE posted:why isn't it good for osx? no one outside of apple writes osx-only software other than artisinal toys and ios dev tools
|
# ? Jan 22, 2016 06:12 |
|
Asymmetrikon posted:golang does have gofmt, so that's cool, and channels are kind of neat i guess? still wouldn't want to write in it though lol. gofmt is a basic editor feature except its really specific to how the bad developers of go want their bad language to look like.
|
# ? Jan 22, 2016 06:14 |
|
Plorkyeran posted:no one outside of apple writes osx-only software other than artisinal toys and ios dev tools ok that was my guess how long until swift is good enough on linux that i can write dumb personal shell tools and stuff with it
|
# ? Jan 22, 2016 06:15 |
|
Linux guy: "hey, today I used mailing lists and got excited about writing more shell commands. This is definitely the best way to do things!"
|
# ? Jan 22, 2016 06:15 |
|
triple sulk posted:actually, f# is the best language
|
# ? Jan 22, 2016 07:30 |
|
If you're not gonna use a functional language, at least use C so you are categorically prevented from working with those OO idiots. Namaste.
|
# ? Jan 22, 2016 07:34 |
|
Chamook posted:
|
# ? Jan 22, 2016 07:37 |
|
Shaggar posted:Linux guy: "hey, today I used mailing lists and got excited about writing more shell commands. This is definitely the best way to do things!" i'm not a linux guy i'm polyamourOS
|
# ? Jan 22, 2016 08:05 |
|
MALE SHOEGAZE posted:why isn't it good for osx? it's good for OS X it's just people these days tend to do web or thinly veiled web wrappers on the desktop and native on mobile for their chickenshit apps. see slack, trello, etc
|
# ? Jan 22, 2016 09:29 |
|
Delphi update: Delphi 2010 is actually quite nice because it's got generics and anonymous functions, so you can almost write real code in it instead of just prodding the GUI or the DB having a seemingly random selection of windows api functions actually declared while stuff like the "pls return the size of this file" function is missing is still confusing me though
|
# ? Jan 22, 2016 09:45 |
|
|
# ? May 24, 2024 14:41 |
|
elm has elm-format
|
# ? Jan 22, 2016 09:50 |