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.
 
  • Locked thread
DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
does such a thing exist? is it even possible?

Adbot
ADBOT LOVES YOU

echinopsis
Apr 13, 2004

by Fluffdaddy
anything is possible when your dreams
meet computers

pram
Jun 10, 2001
what would the point be when you can cast the return

My Linux Rig
Mar 27, 2010
Probation
Can't post for 6 years!
c# does this just make the return type an object

ass cobra
May 28, 2004

by Azathoth

echinopsis posted:

meat computers

sam3

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

pram posted:

what would the point be when you can cast the return

what's the deal with word "cast" anyway? why people don't just say "convert" or something?

don't believe sussman, programming ain't no magic

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Symbolic Butt posted:

what's the deal with word "cast" anyway? why people don't just say "convert" or something?

don't believe sussman, programming ain't no magic

it's like you're casting them in a play

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

MALE SHOEGAZE posted:

it's like you're casting them in a play

whoa

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

MALE SHOEGAZE posted:

does such a thing exist? is it even possible?

no; yes.

Valeyard
Mar 30, 2012


Grimey Drawer

pram posted:

what would the point be when you can cast the return

id like to cast you to the shadow realm

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

Valeyard posted:

id like to cast you to the shadow realm

I'd like to cast u to gbs

LP0 ON FIRE
Jan 25, 2006

beep boop

Symbolic Butt posted:

what's the deal with word "cast" anyway? why people don't just say "convert" or something?

don't believe sussman, programming ain't no magic

it's like your casting a rod and the value is the lure and the type is the kind of fish you catch in a certain lake

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice

My Linux Rig posted:

c# does this just make the return type an object

technically an object is a type, it's just that everything inherits from this type explicitly or implicitly

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 10 years!)

My Linux Rig posted:

c# does this just make the return type an object

obj-c does this just make the return type id

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
i just return a hash containing the thing

DaTroof
Nov 16, 2000

CC LIMERICK CONTEST GRAND CHAMPION
There once was a poster named Troof
Who was getting quite long in the toof
in php you can optionally declare types for arguments but not return values

hth op

The Management
Jan 2, 2010

sup, bitch?
it's called void*

gonadic io
Feb 16, 2011

>>=
haskell does this just make the return type a Dynamic

Tiny Bug Child
Sep 11, 2004

Avoid Symmetry, Allow Complexity, Introduce Terror

DaTroof posted:

in php you can optionally declare types for arguments but not return values

hth op

yeah and it's actually better than what you want, because you can only specify it on the types that matter--you can type hint for arrays, callables, and object classes. you can't do it for the different "types" of primitive though cause that would be dumb

pram
Jun 10, 2001
Php is a bad languGe for dumb idiot fat babies

echinopsis
Apr 13, 2004

by Fluffdaddy
yet I've seen very few dumb idiot fat babies irl coding in php

seems they have identified a poor demographic to target they language

Moo Cowabunga
Jun 15, 2009

[Office Worker.




lol

Moo Cowabunga
Jun 15, 2009

[Office Worker.




what is the best language , pram?

pram
Jun 10, 2001
Go

echinopsis
Apr 13, 2004

by Fluffdaddy
google made

My Linux Rig
Mar 27, 2010
Probation
Can't post for 6 years!
ugh php thank god net is going open source it might start getting rid that poo poo language

pram
Jun 10, 2001
yeah a lot of people itching to migrate to asp

A Wheezy Steampunk
Jul 16, 2006

High School Grads Eligible!
i don't know what any of these posts mean but i'm posting anyway

Mozi
Apr 4, 2004

Forms change so fast
Time is moving past
Memory is smoke
Gonna get wider when I die
Nap Ghost
referential transparency is a good thing so the thread title is a bad thing

cowboy beepboop
Feb 24, 2001


is there a good web framework yet

pram
Jun 10, 2001
im using gin. depends on what you mean by 'framework'

maniacdevnull
Apr 18, 2007

FOUR CUBIC FRAMES
DISPROVES SOFT G GOD
YOU ARE EDUCATED STUPID

pram posted:

im using gin.

same, cheers

pram
Jun 10, 2001
cheers

Notorious b.s.d.
Jan 25, 2003

by Reene

MALE SHOEGAZE posted:

does such a thing exist? is it even possible?

scala

BONGHITZ
Jan 1, 1970

does returning a void* work for this?

jonpv
Apr 19, 2007

Simply unbannable!
everything is a function

3 is just a function that takes no arguments and returns the value 3

as all arguments to functions will themselves be return values from functions, you cannot have this

sorry

cowboy beepboop
Feb 24, 2001

pram posted:

im using gin. depends on what you mean by 'framework'

hm looks like it's just a way to write rest endpoints

a cyberpunk goose
May 21, 2007

**begins to screech at a volume that intimidates all within range**

echinopsis
Apr 13, 2004

by Fluffdaddy

jonpv posted:

everything is a function

3 is just a function that takes no arguments and returns the value 3

as all arguments to functions will themselves be return values from functions, you cannot have this

sorry

but 3+3 = 6so how can you add fuctions?

Adbot
ADBOT LOVES YOU

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord

echinopsis posted:

but 3+3 = 6so how can you add fuctions?

+ is a function that takes 2 arguments and returns.......... functions.

  • Locked thread