however i can't help remembering why someone would learn Scala: cuz they already know some 2 other languages, and want to see why this scala thing brags on being so damn scalable :)
could you skip to that part pls pls pls?
basic syntax is boring, give us some of that inheritance/ interfacing / multithreads :D
println (getOneFive ()). Then you change the method to:
def getOneFive = (1, 5) /*and*/
println (getOneFive), saying 'we no long _need_ parenthesis here', while the red errormark clearly says, that these _must_ be removed; compiler: error: getOneFive of type (Int, Int) does not take parameters.
While removing the braces from method 'getOneAndFive ' it's said 'we don't need the braces anymore in the calling context', while Eclipse is marking the old call with braces as error. So it's not we don't need, but 'we are forebidden'. Why is this.
Second question: What's the difference between a method and a function? Thanks.
@Unbekannter0Nutzer I don't really understand your first question. It sounds like you may not have JDT weaving set up correctly. I would recommend going back to the first tutorial and looking at the troubleshooting guide if you can't compile the sample snippet. Methods and functions are just different names for the same things, in some languages like Java they are called methods, while in Scala they are called functions.
Comment removed
randyjshepherd 1 month ago
how you get syntax coloring like this?
imshenitsky 1 month ago
This is very useful, thank you. The syntax reminds me a lot that of VBA
jujufrenchy 2 months ago
The "Identifier: Type" syntax reminds me of Pascal. Ah, memories...
basmithtx 3 months ago in playlist More videos from ShadowofCatron
looks nice
however i can't help remembering why someone would learn Scala: cuz they already know some 2 other languages, and want to see why this scala thing brags on being so damn scalable :)
could you skip to that part pls pls pls?
basic syntax is boring, give us some of that inheritance/ interfacing / multithreads :D
if i don't ask too much
De4sher 8 months ago
A really good video.
ieonqutav 10 months ago
tutorial 4 please :)
jiminoc 1 year ago
@jiminoc Alright, I promise I'll make it.
ShadowofCatron 1 year ago
I must say these videos are great. I thought they would be bad - but found myself watching them and following along.
I think the format - large editor window and large font - helps a lot and makes it easy to follow.
Keep it up. Cheers!
vvindstalker 1 year ago
at about 4:20 to 4:39, code śtarts like this:
def getOneFive () : (Int, Int) = (1, 5) /*and*/
println (getOneFive ()). Then you change the method to:
def getOneFive = (1, 5) /*and*/
println (getOneFive), saying 'we no long _need_ parenthesis here', while the red errormark clearly says, that these _must_ be removed; compiler: error: getOneFive of type (Int, Int) does not take parameters.
Unbekannter0Nutzer 1 year ago
@Unbekannter0Nutzer I meant that you can no longer have parenthesis there, there are not optional.
ShadowofCatron 1 year ago
While removing the braces from method 'getOneAndFive ' it's said 'we don't need the braces anymore in the calling context', while Eclipse is marking the old call with braces as error. So it's not we don't need, but 'we are forebidden'. Why is this.
Second question: What's the difference between a method and a function? Thanks.
Unbekannter0Nutzer 1 year ago
@Unbekannter0Nutzer I don't really understand your first question. It sounds like you may not have JDT weaving set up correctly. I would recommend going back to the first tutorial and looking at the troubleshooting guide if you can't compile the sample snippet. Methods and functions are just different names for the same things, in some languages like Java they are called methods, while in Scala they are called functions.
ShadowofCatron 1 year ago
Thanks - very clear and very useful. Any sign of tutorial 4? :)
itsmahfaaaace 2 years ago
I will try and get 4 made this weekend, but the ACT is Saturday, so if it happens it will be Sunday.
ShadowofCatron 2 years ago
@itsmahfaaaace Okay, I promise I am posting another one today... :)
ShadowofCatron 1 year ago
@ShadowofCatron Right now would be great timing as I've just finished a project at work and have some spare time!
itsmahfaaaace 1 year ago
@ShadowofCatron Right now would be great timing as I've just finished a project at work and have some spare time!
itsmahfaaaace 1 year ago
@ShadowofCatron thanks for these tutorials. Any chance to get tutorial 4 somewhere ?
jlezard 1 year ago