Submit Search
Upload
Scala dreaded underscore
•
124 likes
•
53,536 views
RUDDER
Follow
A reference about every use cases of underscores in the Scala programming language
Read less
Read more
Technology
News & Politics
Report
Share
Report
Share
1 of 15
Recommended
Owasp zap
Owasp zap
ColdFusionConference
Exploring ZIO Prelude: The game changer for typeclasses in Scala
Exploring ZIO Prelude: The game changer for typeclasses in Scala
Jorge Vásquez
svm classification
svm classification
Akhilesh Joshi
Comparison of Machine Learning Algorithms
Comparison of Machine Learning Algorithms
butest
Multiple inheritance in java3 (1).pptx
Multiple inheritance in java3 (1).pptx
RkGupta83
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Simplilearn
Deep Reinforcement Learning and Its Applications
Deep Reinforcement Learning and Its Applications
Bill Liu
Dowhy: An end-to-end library for causal inference
Dowhy: An end-to-end library for causal inference
Amit Sharma
Recommended
Owasp zap
Owasp zap
ColdFusionConference
Exploring ZIO Prelude: The game changer for typeclasses in Scala
Exploring ZIO Prelude: The game changer for typeclasses in Scala
Jorge Vásquez
svm classification
svm classification
Akhilesh Joshi
Comparison of Machine Learning Algorithms
Comparison of Machine Learning Algorithms
butest
Multiple inheritance in java3 (1).pptx
Multiple inheritance in java3 (1).pptx
RkGupta83
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Simplilearn
Deep Reinforcement Learning and Its Applications
Deep Reinforcement Learning and Its Applications
Bill Liu
Dowhy: An end-to-end library for causal inference
Dowhy: An end-to-end library for causal inference
Amit Sharma
OpenCV Introduction
OpenCV Introduction
Zachary Blair
The Internet as Web Services: introduction to ReST
The Internet as Web Services: introduction to ReST
Bruno Kessler Foundation
SVM Tutorial
SVM Tutorial
butest
Support Vector Machines ( SVM )
Support Vector Machines ( SVM )
Mohammad Junaid Khan
Nodejs presentation
Nodejs presentation
Arvind Devaraj
Object detection
Object detection
ROUSHAN RAJ KUMAR
Oscp - Journey
Oscp - Journey
Vandana Verma
Data analysis Design Document
Data analysis Design Document
Venkata Reddy Konasani
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Ahmed Gad
Java™ (OOP) - Chapter 8: "Objects and Classes"
Java™ (OOP) - Chapter 8: "Objects and Classes"
Gouda Mando
Ad hoc Polymorphism using Type Classes and Cats
Ad hoc Polymorphism using Type Classes and Cats
Philip Schwarz
Java Annotations
Java Annotations
Serhii Kartashov
Object Detection & Tracking
Object Detection & Tracking
Akshay Gujarathi
Statistical learning
Statistical learning
Slideshare
Introduction to Multi-armed Bandits
Introduction to Multi-armed Bandits
Yan Xu
N-tier and oop - moving across technologies
N-tier and oop - moving across technologies
Jacinto Limjap
java memory management & gc
java memory management & gc
exsuns
Data Analysis: Evaluation Metrics for Supervised Learning Models of Machine L...
Data Analysis: Evaluation Metrics for Supervised Learning Models of Machine L...
Md. Main Uddin Rony
Garbage collection
Garbage collection
Somya Bagai
Convolutional neural network from VGG to DenseNet
Convolutional neural network from VGG to DenseNet
SungminYou
카카오스토리 웹팀의 코드리뷰 경험
카카오스토리 웹팀의 코드리뷰 경험
Ohgyun Ahn
Webservice cache strategy
Webservice cache strategy
DaeMyung Kang
More Related Content
What's hot
OpenCV Introduction
OpenCV Introduction
Zachary Blair
The Internet as Web Services: introduction to ReST
The Internet as Web Services: introduction to ReST
Bruno Kessler Foundation
SVM Tutorial
SVM Tutorial
butest
Support Vector Machines ( SVM )
Support Vector Machines ( SVM )
Mohammad Junaid Khan
Nodejs presentation
Nodejs presentation
Arvind Devaraj
Object detection
Object detection
ROUSHAN RAJ KUMAR
Oscp - Journey
Oscp - Journey
Vandana Verma
Data analysis Design Document
Data analysis Design Document
Venkata Reddy Konasani
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Ahmed Gad
Java™ (OOP) - Chapter 8: "Objects and Classes"
Java™ (OOP) - Chapter 8: "Objects and Classes"
Gouda Mando
Ad hoc Polymorphism using Type Classes and Cats
Ad hoc Polymorphism using Type Classes and Cats
Philip Schwarz
Java Annotations
Java Annotations
Serhii Kartashov
Object Detection & Tracking
Object Detection & Tracking
Akshay Gujarathi
Statistical learning
Statistical learning
Slideshare
Introduction to Multi-armed Bandits
Introduction to Multi-armed Bandits
Yan Xu
N-tier and oop - moving across technologies
N-tier and oop - moving across technologies
Jacinto Limjap
java memory management & gc
java memory management & gc
exsuns
Data Analysis: Evaluation Metrics for Supervised Learning Models of Machine L...
Data Analysis: Evaluation Metrics for Supervised Learning Models of Machine L...
Md. Main Uddin Rony
Garbage collection
Garbage collection
Somya Bagai
Convolutional neural network from VGG to DenseNet
Convolutional neural network from VGG to DenseNet
SungminYou
What's hot
(20)
OpenCV Introduction
OpenCV Introduction
The Internet as Web Services: introduction to ReST
The Internet as Web Services: introduction to ReST
SVM Tutorial
SVM Tutorial
Support Vector Machines ( SVM )
Support Vector Machines ( SVM )
Nodejs presentation
Nodejs presentation
Object detection
Object detection
Oscp - Journey
Oscp - Journey
Data analysis Design Document
Data analysis Design Document
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Java™ (OOP) - Chapter 8: "Objects and Classes"
Java™ (OOP) - Chapter 8: "Objects and Classes"
Ad hoc Polymorphism using Type Classes and Cats
Ad hoc Polymorphism using Type Classes and Cats
Java Annotations
Java Annotations
Object Detection & Tracking
Object Detection & Tracking
Statistical learning
Statistical learning
Introduction to Multi-armed Bandits
Introduction to Multi-armed Bandits
N-tier and oop - moving across technologies
N-tier and oop - moving across technologies
java memory management & gc
java memory management & gc
Data Analysis: Evaluation Metrics for Supervised Learning Models of Machine L...
Data Analysis: Evaluation Metrics for Supervised Learning Models of Machine L...
Garbage collection
Garbage collection
Convolutional neural network from VGG to DenseNet
Convolutional neural network from VGG to DenseNet
Viewers also liked
카카오스토리 웹팀의 코드리뷰 경험
카카오스토리 웹팀의 코드리뷰 경험
Ohgyun Ahn
Webservice cache strategy
Webservice cache strategy
DaeMyung Kang
Exception log practical_coding_guide, 예외와 로그 코딩 실용 가이드
Exception log practical_coding_guide, 예외와 로그 코딩 실용 가이드
도형 임
알고리즘 문제해결전략 #1
알고리즘 문제해결전략 #1
Byeongsu Kang
Aws summit 2017 사내전파교육
Aws summit 2017 사내전파교육
Byeongsu Kang
코딩소림사 Rx java
코딩소림사 Rx java
Byeongsu Kang
멸종하는 공룡이 되지 않으려면
멸종하는 공룡이 되지 않으려면
Byeongsu Kang
알고리즘2
알고리즘2
Byeongsu Kang
예외처리가이드
예외처리가이드
도형 임
텐서플로우 설치도 했고 튜토리얼도 봤고 기초 예제도 짜봤다면 TensorFlow KR Meetup 2016
텐서플로우 설치도 했고 튜토리얼도 봤고 기초 예제도 짜봤다면 TensorFlow KR Meetup 2016
Taehoon Kim
지적 대화를 위한 깊고 넓은 딥러닝 PyCon APAC 2016
지적 대화를 위한 깊고 넓은 딥러닝 PyCon APAC 2016
Taehoon Kim
알아두면 쓸데있는 신기한 강화학습 NAVER 2017
알아두면 쓸데있는 신기한 강화학습 NAVER 2017
Taehoon Kim
딥러닝과 강화 학습으로 나보다 잘하는 쿠키런 AI 구현하기 DEVIEW 2016
딥러닝과 강화 학습으로 나보다 잘하는 쿠키런 AI 구현하기 DEVIEW 2016
Taehoon Kim
책 읽어주는 딥러닝: 배우 유인나가 해리포터를 읽어준다면 DEVIEW 2017
책 읽어주는 딥러닝: 배우 유인나가 해리포터를 읽어준다면 DEVIEW 2017
Taehoon Kim
Viewers also liked
(14)
카카오스토리 웹팀의 코드리뷰 경험
카카오스토리 웹팀의 코드리뷰 경험
Webservice cache strategy
Webservice cache strategy
Exception log practical_coding_guide, 예외와 로그 코딩 실용 가이드
Exception log practical_coding_guide, 예외와 로그 코딩 실용 가이드
알고리즘 문제해결전략 #1
알고리즘 문제해결전략 #1
Aws summit 2017 사내전파교육
Aws summit 2017 사내전파교육
코딩소림사 Rx java
코딩소림사 Rx java
멸종하는 공룡이 되지 않으려면
멸종하는 공룡이 되지 않으려면
알고리즘2
알고리즘2
예외처리가이드
예외처리가이드
텐서플로우 설치도 했고 튜토리얼도 봤고 기초 예제도 짜봤다면 TensorFlow KR Meetup 2016
텐서플로우 설치도 했고 튜토리얼도 봤고 기초 예제도 짜봤다면 TensorFlow KR Meetup 2016
지적 대화를 위한 깊고 넓은 딥러닝 PyCon APAC 2016
지적 대화를 위한 깊고 넓은 딥러닝 PyCon APAC 2016
알아두면 쓸데있는 신기한 강화학습 NAVER 2017
알아두면 쓸데있는 신기한 강화학습 NAVER 2017
딥러닝과 강화 학습으로 나보다 잘하는 쿠키런 AI 구현하기 DEVIEW 2016
딥러닝과 강화 학습으로 나보다 잘하는 쿠키런 AI 구현하기 DEVIEW 2016
책 읽어주는 딥러닝: 배우 유인나가 해리포터를 읽어준다면 DEVIEW 2017
책 읽어주는 딥러닝: 배우 유인나가 해리포터를 읽어준다면 DEVIEW 2017
Similar to Scala dreaded underscore
groovy and concurrency
groovy and concurrency
Paul King
Functional programming with_jdk8-s_ritter
Functional programming with_jdk8-s_ritter
Simon Ritter
Lambdas and Streams in Java SE 8: Making Bulk Operations simple - Simon Ritter
Lambdas and Streams in Java SE 8: Making Bulk Operations simple - Simon Ritter
JAXLondon2014
Lambdas And Streams in JDK8
Lambdas And Streams in JDK8
Simon Ritter
Java 8
Java 8
jclingan
What's new in Java 8
What's new in Java 8
jclingan
Improved Developer Productivity In JDK8
Improved Developer Productivity In JDK8
Simon Ritter
Scalatra 2.2
Scalatra 2.2
Ivan Porto Carrero
XML Schema Patterns for Databinding
XML Schema Patterns for Databinding
Paul Downey
Java SE 8
Java SE 8
Simon Ritter
Javascript fundamentals and not
Javascript fundamentals and not
Salvatore Fazio
Java findamentals2
Java findamentals2
Todor Kolev
Java findamentals2
Java findamentals2
Todor Kolev
Java_Roadmap.pptx
Java_Roadmap.pptx
ssuser814cf2
Object-oriented Design: Polymorphism via Inheritance (vs. Delegation)
Object-oriented Design: Polymorphism via Inheritance (vs. Delegation)
Adair Dingle
55j7
55j7
swein2
Paulking groovy
Paulking groovy
d0nn9n
Groovy Power Features
Groovy Power Features
Paul King
Java basics training 1
Java basics training 1
Kushan Shalindra Amarasiri - Technical QE Specialist
Similar to Scala dreaded underscore
(19)
groovy and concurrency
groovy and concurrency
Functional programming with_jdk8-s_ritter
Functional programming with_jdk8-s_ritter
Lambdas and Streams in Java SE 8: Making Bulk Operations simple - Simon Ritter
Lambdas and Streams in Java SE 8: Making Bulk Operations simple - Simon Ritter
Lambdas And Streams in JDK8
Lambdas And Streams in JDK8
Java 8
Java 8
What's new in Java 8
What's new in Java 8
Improved Developer Productivity In JDK8
Improved Developer Productivity In JDK8
Scalatra 2.2
Scalatra 2.2
XML Schema Patterns for Databinding
XML Schema Patterns for Databinding
Java SE 8
Java SE 8
Javascript fundamentals and not
Javascript fundamentals and not
Java findamentals2
Java findamentals2
Java findamentals2
Java findamentals2
Java_Roadmap.pptx
Java_Roadmap.pptx
Object-oriented Design: Polymorphism via Inheritance (vs. Delegation)
Object-oriented Design: Polymorphism via Inheritance (vs. Delegation)
55j7
55j7
Paulking groovy
Paulking groovy
Groovy Power Features
Groovy Power Features
Java basics training 1
Java basics training 1
More from RUDDER
What if configuration management didn't need to be lvl60 in dev?
What if configuration management didn't need to be lvl60 in dev?
RUDDER
Servers compliance: audit, remediation, proof
Servers compliance: audit, remediation, proof
RUDDER
OSIS 2019 - Qu’apporte l’observabilité à la gestion de configuration ?
OSIS 2019 - Qu’apporte l’observabilité à la gestion de configuration ?
RUDDER
OW2Con - Configurations, do you prove yours?
OW2Con - Configurations, do you prove yours?
RUDDER
The new plugin ecosystem in RUDDER 5.0
The new plugin ecosystem in RUDDER 5.0
RUDDER
What uses for observing operations of Configuration Management?
What uses for observing operations of Configuration Management?
RUDDER
UX challenges of a UI-centric config management tool
UX challenges of a UI-centric config management tool
RUDDER
What happened in RUDDER in 2018 and what’s next?
What happened in RUDDER in 2018 and what’s next?
RUDDER
What is RUDDER and when should I use it?
What is RUDDER and when should I use it?
RUDDER
Fosdem - Configurations do you prove yours?
Fosdem - Configurations do you prove yours?
RUDDER
L'audit en continu : clé de la conformité démontrable (#POSS 2018)
L'audit en continu : clé de la conformité démontrable (#POSS 2018)
RUDDER
Fiabilité et conformité continues en production avec Rudder (#BBOOST 2018)
Fiabilité et conformité continues en production avec Rudder (#BBOOST 2018)
RUDDER
Stay up - voyage d'un éditeur de logiciels libres
Stay up - voyage d'un éditeur de logiciels libres
RUDDER
How we scaled Rudder to 10k, and the road to 50k
How we scaled Rudder to 10k, and the road to 50k
RUDDER
What's new and what's next in Rudder
What's new and what's next in Rudder
RUDDER
Poss 2017 : gestion des configurations et mise en conformité chez un service ...
Poss 2017 : gestion des configurations et mise en conformité chez un service ...
RUDDER
Poss 2017 - la continuité, arme secrète de la gestion du si - cas concret de ...
Poss 2017 - la continuité, arme secrète de la gestion du si - cas concret de ...
RUDDER
POSS 2017 : Comment automatiser son infrastructure quand... on a pas le temps...
POSS 2017 : Comment automatiser son infrastructure quand... on a pas le temps...
RUDDER
DevOps D-Day 2017 - Gestion des configurations et mise en conformité chez un ...
DevOps D-Day 2017 - Gestion des configurations et mise en conformité chez un ...
RUDDER
RUDDER - Continuous Configuration (configuration management + continuous aud...
RUDDER - Continuous Configuration (configuration management + continuous aud...
RUDDER
More from RUDDER
(20)
What if configuration management didn't need to be lvl60 in dev?
What if configuration management didn't need to be lvl60 in dev?
Servers compliance: audit, remediation, proof
Servers compliance: audit, remediation, proof
OSIS 2019 - Qu’apporte l’observabilité à la gestion de configuration ?
OSIS 2019 - Qu’apporte l’observabilité à la gestion de configuration ?
OW2Con - Configurations, do you prove yours?
OW2Con - Configurations, do you prove yours?
The new plugin ecosystem in RUDDER 5.0
The new plugin ecosystem in RUDDER 5.0
What uses for observing operations of Configuration Management?
What uses for observing operations of Configuration Management?
UX challenges of a UI-centric config management tool
UX challenges of a UI-centric config management tool
What happened in RUDDER in 2018 and what’s next?
What happened in RUDDER in 2018 and what’s next?
What is RUDDER and when should I use it?
What is RUDDER and when should I use it?
Fosdem - Configurations do you prove yours?
Fosdem - Configurations do you prove yours?
L'audit en continu : clé de la conformité démontrable (#POSS 2018)
L'audit en continu : clé de la conformité démontrable (#POSS 2018)
Fiabilité et conformité continues en production avec Rudder (#BBOOST 2018)
Fiabilité et conformité continues en production avec Rudder (#BBOOST 2018)
Stay up - voyage d'un éditeur de logiciels libres
Stay up - voyage d'un éditeur de logiciels libres
How we scaled Rudder to 10k, and the road to 50k
How we scaled Rudder to 10k, and the road to 50k
What's new and what's next in Rudder
What's new and what's next in Rudder
Poss 2017 : gestion des configurations et mise en conformité chez un service ...
Poss 2017 : gestion des configurations et mise en conformité chez un service ...
Poss 2017 - la continuité, arme secrète de la gestion du si - cas concret de ...
Poss 2017 - la continuité, arme secrète de la gestion du si - cas concret de ...
POSS 2017 : Comment automatiser son infrastructure quand... on a pas le temps...
POSS 2017 : Comment automatiser son infrastructure quand... on a pas le temps...
DevOps D-Day 2017 - Gestion des configurations et mise en conformité chez un ...
DevOps D-Day 2017 - Gestion des configurations et mise en conformité chez un ...
RUDDER - Continuous Configuration (configuration management + continuous aud...
RUDDER - Continuous Configuration (configuration management + continuous aud...
Recently uploaded
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Precisely
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Zilliz
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Manik S Magar
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Addepto
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
charlottematthew16
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
RankYa
How to write a Business Continuity Plan
How to write a Business Continuity Plan
Databarracks
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
UiPathCommunity
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
2toLead Limited
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Hervé Boutemy
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
ScyllaDB
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Mark Simos
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
charlottematthew16
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Lorenzo Miniero
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Mattias Andersson
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
DianaGray10
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Lonnie McRorey
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Kalema Edgar
Recently uploaded
(20)
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
How to write a Business Continuity Plan
How to write a Business Continuity Plan
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Scala dreaded underscore
1.
Scala dreaded _
François Armand
2.
Too many use
for _ ? © Normation 2010 - 2
3.
Too many use
for _ ? © Normation 2010 - 3
4.
It's always a
kind of joker 1/ “Everything” 2/ “Give me a variable name but – I don't care of what it is – and/or – don't want to pollute my namespace with it” © Normation 2010 - 4
5.
1. Import all
Java “import *” © Normation 2010 - 5
6.
2. var initialization
to default value Highly discourage in idiomatic Scala: – Prefer val against var – Try to always initialize a variable © Normation 2010 - 6
7.
3. Unused variables
In higher order functions © Normation 2010 - 7
8.
3. Unused variables
In pattern matching © Normation 2010 - 8
9.
4. Anonymous parameters
In higher order functions © Normation 2010 - 9
10.
4. Anonymous parameters
In partial functions © Normation 2010 - 10
11.
5. Don't import
name in namespace © Normation 2010 - 11
12.
6. Syntactic sugar
for existential type Existential type ? http://stackoverflow.com/questions/1031042/scalas-existential-types Java: – Type erasure and raw types – “?” generic wildcard Scala © Normation 2010 - 12
13.
6. Syntactic sugar
for existential type And in pattern matching © Normation 2010 - 13
14.
And some more
_ with an other char 1) Accessors in tuples • ("foo", "bar")._2 // getter for “bar” 2) _* In repeated parameter (Java 1.5 varargs) • String.format("one: %s two: %s", "1" , "2") • String.format("one: %s two: %s", Seq("1","2"):_*) In XML pattern matching • See Scala XML book http://www.scalalang.org/node/131 In pattern matching, as sequence wildcard • Search for UnapplySeq documentation 3) In identifier name ending with an operator • ex: “query?” not valide name, use “query_?” 4) In setter name • _= http://stackoverflow.com/questions/1392862/scala-overriding-a-non-abstract-def-with-a-var/1393389#1393389 © Normation 2010 - 14
15.
Q&A
Thanks ! © Normation 2010 15