Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ScalaMatsuri CFPひとめぐり / ScalaMatsuri CFP quick ...

Taisuke Oe
January 08, 2020

ScalaMatsuri CFPひとめぐり / ScalaMatsuri CFP quick tour

Presented on January 8th 2020 at Pre ScalaMatsuri meetup.

Taisuke Oe

January 08, 2020
Tweet

More Decks by Taisuke Oe

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ w 5BJTVLF0F w 5XJUUFS!0&@VJB w 4DBMB.BUTVSJΛओ࠵͍ͯ͠·͢ɻ w εϐʔΧʔܦݧ w

    4DBMB%BZT w +$$POG w 4DBMBؔ੢αϛοτ w 4DBMB.BUTVSJͳͲ
  2. 4DBMBϏΪφʔͷఆٛ ͜ͷΧςΰϦ͸ɺScalaͰίʔυΛॻ͖࢝Ίͨਓ͕ΑΓScalaΛ࢖͍͜ͳͯ͠ɺૉૣ͘σόοάͨ͠Γɺద੾ ͳந৅ԽΛ࢖͍͜ͳͨ͠ΓɺΫϦʔϯͰ҆શͳίʔυΛॻ͚ΔΑ͏ʹͳΔͨΊͷηογϣϯͰ͢ɻ ྫ͑ ͹ɺҎԼͷΑ͏ͳࢀՃऀΛର৅ͱͨ͠ηογϣϯ͕֘౰͠·͢ɻ • ScalaͷίϨΫγϣϯૢ࡞Λ͢Δͱ͖ʹmap, flatMap, filter, findͳͲɺجຊతͳ΋ͷҎ֎͋·Γ࢖ͬͨ

    ͜ͱ͕ͳ͍ɻ • forࣜͰॻ͚Δ΋ͷͱͦ͏Ͱͳ͍΋ͷͷ۠෼΍ɺॻ͚Δ৚͕݅Α͘෼͔Βͳ͍ɻ • OptionɺTryɺEitherͷ࢖͍෼͚͕Α͘෼͔Βͳ͍ɻ͍ͭྫ֎Λ౤͛ͯ͠·͏ɻ • case classͱclassɺabstract classɺtraitͳͲͷҧ͍͕Α͘෼͔Βͳ͍ɻ • ύλʔϯϚονΛɺmatchࣜҎ֎Ͱ࢖ͬͨ͜ͱ͕ͳ͍ɻෳ਺ͷύλʔϯΛ૊Έ߹Θͤͯ࢖͍ͬͯͳ͍ɻ • ܕύϥϝʔλʔ΍implicitͷ࢖͍ॴ͕Α͘෼͔Βͳ͍ɻͦΕΒ͕࢖ΘΕͨίʔυΛಡΊͳ͍ɻ ৽͍͠੾ΓޱͰ͜͏͍ͬͨجૅΛղઆ͢Δηογϣϯ΍ɺ࠶ೖ໳͢ΔηογϣϯͳͲɺ͞·͟·ͳ੾Γޱ ͰͷηογϣϯΛืू͠·͢ɻͥͻ͝Ԡื͍ͩ͘͞ɻ