Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Police Academy III
Nov 4, 2011

Hard NOP Life posted:

In what context?

I think he's talking about this: http://nickknowlson.com/blog/2013/04/16/why-maybe-is-better-than-null/ (i didn't actually read it though)

The idea is that having a type system that allows you to optionally tack on null as a valid value to any type is better than having to check against it all the time, which is pretty obviously right imo.

Adbot
ADBOT LOVES YOU

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

Condiv posted:

i see this argument more and more recently, but is there anyone here except shaggar and maybe tbc who thinks null was not a huge mistake?
i don't see any problem with having null in a PL

i read hoare's "billion dollar mistake" paper and he says that tools like prefix are the solution, but microsoft doesn't run prefix until after they're code complete, something i know because i've been responsible for enabling it. if they ran it all the time it would kill their dev momentum

MeruFM
Jul 27, 2010
nulls are just annoying because they often don't fail loudly

also needs to be treated as a 3rd state
sql_true_false_null_table.png

Shaggar
Apr 26, 2006
nulls fail loudly when you try to do something to a null

MononcQc
May 29, 2007

Shaggar posted:

nulls fail loudly when you try to do something to a null

failing p-lang style

Janitor Prime
Jan 22, 2004

PC LOAD LETTER

What da fuck does that mean

Fun Shoe

Police Academy III posted:

I think he's talking about this: http://nickknowlson.com/blog/2013/04/16/why-maybe-is-better-than-null/ (i didn't actually read it though)

The idea is that having a type system that allows you to optionally tack on null as a valid value to any type is better than having to check against it all the time, which is pretty obviously right imo.

Cool article and I agree 100%, it's a shame that Scala had to keep nulls. I just ran into this when working with the 3rd assignment for the cousera class.

Toady
Jan 12, 2009

ultramiraculous posted:

pretty sure he's the guy who brought "skeuomorphism" into the mainstream conversation, making all ios talk just awful.

hi i'm john gruber

- anthropomorphic brushed metal says something
- yankess rule
- republicans suck
- weekly paul krugman link
- i promise this negative news about apple isn't true

tef
May 30, 2004

-> some l-system crap ->

Shaggar posted:

nulls fail loudly when you try to do something to a null

imagine i've copy pasted something you said about checked exceptions, except i've removed the context so it looks like you're talking about nulls.

anyway, whatever, it's a nice java troll thing where they'd rather have checked exceptions than proper typing for nulls :golfclap:

Squinty Applebottom
Jan 1, 2013

Toady posted:

hi i'm john gruber

- anthropomorphic brushed metal says something
- yankess rule
- republicans suck
- weekly paul krugman link
- i promise this negative news about apple isn't true

thats p. much yospos minus the programming thread

Shaggar
Apr 26, 2006
yeah im not attached to null or anything, but how would you handle uninitialized objects?

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Shaggar posted:

yeah im not attached to null or anything, but how would you handle uninitialized objects?

just don't allow it?

if an object doesn't need to exist then why give it a name

Max Facetime
Apr 18, 2009

if feeling sensible: instead of nulls sprinkle null objects everywhere

if feeling unreasonable: AbstractOptionalObjectHandleFactoryStrategyInjectionStrategyInjector

Opinion Haver
Apr 9, 2007

Shaggar posted:

yeah im not attached to null or anything, but how would you handle uninitialized objects?

what do you mean (i'm not too familiar with java and how object initialization works)

double sulk
Jul 2, 2010

null is a dumb bullshit thing and used a lot in ruby, which pretty much explains that it's a dumb bullshit thing

Opinion Haver
Apr 9, 2007



seriously

Condiv
May 7, 2008

Sorry to undo the effort of paying a domestic abuser $10 to own this poster, but I am going to lose my dang mind if I keep seeing multiple posters who appear to be Baloogan.

With love,
a mod



they released a server jre for people that don't want auto-update, applets, and some other stuff. dunno if it's ask toolbar free too.

http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html

Notorious b.s.d.
Jan 25, 2003

by Reene

Hard NOP Life posted:

Cool article and I agree 100%, it's a shame that Scala had to keep nulls. I just ran into this when working with the 3rd assignment for the cousera class.

i don't think there was any plausible way to retain java inter-op without null

scala does, however, give you all the tools you need to avoid dealing with nulls (Option, Either, collect(), pattern matching)

Jonnty
Aug 2, 2007

The enemy has become a flaming star!

Shaggar posted:

yeah im not attached to null or anything, but how would you handle uninitialized objects?

surely uninitialised objects would become Nothing using what that guy suggested?

Condiv
May 7, 2008

Sorry to undo the effort of paying a domestic abuser $10 to own this poster, but I am going to lose my dang mind if I keep seeing multiple posters who appear to be Baloogan.

With love,
a mod


Shaggar posted:

yeah im not attached to null or anything, but how would you handle uninitialized objects?

to deal with uninitialized objects you would have to make accessing them a compile time error in all cases, not just some like it is now.

Shaggar
Apr 26, 2006
i didn't read the article. i guess its basically like Nullable<?> in c#? re: initialization i guess you could just require all fields to be initialized in each constructor and any that shouldn't have default values should be Nullables

Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip
Nullable more like Gullible

Nomnom Cookie
Aug 30, 2009



Notorious b.s.d. posted:

i don't think there was any plausible way to retain java inter-op without null

scala does, however, give you all the tools you need to avoid dealing with nulls (Option, Either, collect(), pattern matching)

Option is a really good argument for functional constructs imo

Toady
Jan 12, 2009

i was thinking this gif might cause a few chuckles around here



cheers~

uG
Apr 23, 2003

by Ralp
im offended personally

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

Shaggar posted:

nulls fail loudly when you try to do something to a null

not if it's objc and nil

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

Toady posted:

i was thinking this gif might cause a few chuckles around here



cheers~

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
it's cool how this thread got taken over by noobs in the last 6 months

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
drat, bro, null is like,, what is null anyways? It's like nothing, and infinite, and like infinite nothingness, and how do we handle it? Omg...

Toady
Jan 12, 2009

what if WE'RE the null? dude

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

Toady posted:

what if WE'RE the null? dude

your brain is, at least

Toady
Jan 12, 2009

what me worry? i'm jsut 'positively challenged'

tef
May 30, 2004

-> some l-system crap ->

vapid cutlery posted:

it's cool how this thread got taken over by noobs in the last 6 months

no it's just new people asking the same old questions

tef
May 30, 2004

-> some l-system crap ->
this thread is almost a year old



:smithicide:

Police Academy III
Nov 4, 2011

tef posted:

no it's just new people asking the same old questions

hey what does everyone think about nesting in multiline comments?

Nomnom Cookie
Aug 30, 2009



tef posted:

this thread is almost a year old



:smithicide:

this it guys, time to figure out the best PL and wrap it up

Sapozhnik
Jan 2, 2005

Nap Ghost
FORTH

for people who think LISP is too pragmatic

double sulk
Jul 2, 2010

its php

skeevy achievements
Feb 25, 2008

by merry exmarx
lisp obviously

don't like it? change it to be how you like! at runtime why not! :shepface:

tef
May 30, 2004

-> some l-system crap ->
http://this-plt-life.tumblr.com

Adbot
ADBOT LOVES YOU

tef
May 30, 2004

-> some l-system crap ->
logically, the only choice is prolog

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply