Pro Yearly is on sale from $80 to $50! »

Swiftの値付きEnumをHackする

 Swiftの値付きEnumをHackする

5287c9b9576749092d3170ec738338b8?s=128

Yusuke Ito

May 31, 2016
Tweet

Transcript

  1. $PQZSJHIU4IJSPZBHJ$PSQPSBUJPO"MMSJHIUTSFTFSWFE 4XJGUͷ஋෇͖&OVN Λ)BDL͢Δ ϦʔυΞʔΩςΫτ
 ҏ౻༞ี :VTVLF*UP !OPWJ@ നϠΪίʔϙϨʔγϣϯ 5PLZP4FSWFS4JEF4XJGU.FFUVQ
 

  2. $PQZSJHIU4IJSPZBHJ$PSQPSBUJPO"MMSJHIUTSFTFSWFE 

  3. ΄͔े਺ࣾ ΧϝϦΦͷΞϧΰϦζϜΛαʔϏεͱͯ͠"1*ఏڙ

  4. ΧϝϦΦ"1*ಋೖηϛφʔ ݄ճ։࠵ ʮDPOOQBTTനϠΪίʔϙϨʔγϣϯʯͰݕࡧ

  5. $PQZSJHIU4IJSPZBHJ$PSQPSBUJPO"MMSJHIUTSFTFSWFE αʔόʔαΠυ 4XJGUΤϯδχΞืूதʂ  ΋ͪΖΜɺJ04ɾ"OESPJE΋

  6. $PQZSJHIU4IJSPZBHJ$PSQPSBUJPO"MMSJHIUTSFTFSWFE ஋෇͖&OVN
 "TTPDJBUFE7BMVF&OVNFSBUJPOT w 4XJGUΑΓಋೖ w 0CKFDUJWF$ͱͷޓ׵ੑ͸ͳ͍ ϒϦοδͰ͖ͳ͍  w

    ஋ܕ w ͳͲ 
  7. $PQZSJHIU4IJSPZBHJ$PSQPSBUJPO"MMSJHIUTSFTFSWFE ଓ͖͸1MBZHSPVOEͰ  https://github.com/novi/tsssm-enum