Skip to content

Instantly share code, notes, and snippets.

@kknd22
Created December 21, 2016 19:52
Show Gist options
  • Save kknd22/28d57a55f0a70a589df72e445ae98662 to your computer and use it in GitHub Desktop.
Save kknd22/28d57a55f0a70a589df72e445ae98662 to your computer and use it in GitHub Desktop.
scala symbol operator
// Keywords
<- // Used on for-comprehensions, to separate pattern from generator
=> // Used for function types, function literals and import renaming
// Reserved
( ) // Delimit expressions and parameters
[ ] // Delimit type parameters
{ } // Delimit blocks
. // Method call and path separator
// /* */ // Comments
# // Used in type notations
: // Type ascription or context bounds
<: >: <% // Upper, lower and view bounds
<? <! // Start token for various XML elements
" """ // Strings
' // Indicate symbols and characters
@ // Annotations and variable binding on pattern matching
` // Denote constant or enable arbitrary identifiers
, // Parameter separator
; // Statement separator
_* // vararg expansion
_ // Many different meanings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment