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

Swiftのオーバーロード選択のスコア規則21種類

kntk
May 30, 2024

 Swiftのオーバーロード選択のスコア規則21種類

わいわいswiftc 2024/5.21

kntk

May 30, 2024
Tweet

More Decks by kntk

Other Decks in Technology

Transcript

  1. wमਖ਼͢΂͖͕ͩɺमਖ਼ํ๏͕෼͔Βͳ͍໰୊ 4DPSF<DPNQPOFOUBQQMJFE fi Y T WBMVF> 5ZQF7BSJBCMFT 5<BMMPXTCJOEJOHTUPIPMF><BUUSJCVUFTIPMF><EFGBVMUBCMF@CJOEJOHT><XJUIQPTTJCMFCJOEJOHTFNQUZ>!MPDBUPS!YCBD<&SSPS!4PVSDFTXJGU> 'JYFT <

    fi YJHOPSFJOWBMJE"45OPEF>!MPDBUPS!YCBD<&SSPS!4PVSDFTXJGU> 4PMWFSTUBUJTUJDT 5PUBMOVNCFSPGTDPQFTFYQMPSFE .BYJNVNEFQUISFBDIFEXIJMFFYQMPSJOHTPMVUJPOT 5JNFFNT "UUFNQUJOHUPTBMWBHFBOEFNJUEJBHOPTUJDT  BUUFNQUJOHUZQFWBSJBCMFCJOEJOH5QMBDFIPMEFSGPS5  JODSFBTJOHIPMFTDPSFCZ!MPDBUPS!YCBD<&SSPS!4PVSDFTXJGU>   $IBOHFT  /FXMZ#PVOE 5QMBDFIPMEFSGPS5      GPVOETPMVUJPO<DPNQPOFOUBQQMJFE fi Y T WBMVF><DPNQPOFOUIPMF T WBMVF>    4PMVUJPO 'JYFETDPSF<DPNQPOFOUBQQMJFE fi Y T WBMVF><DPNQPOFOUIPMF T WBMVF> 5ZQFWBSJBCMFT 5BTQMBDFIPMEFSGPS5!MPDBUPS!YCBD<&SSPS!4PVSDFTXJGU> %FGBVMUFEDPOTUSBJOUTMPDBUPS!YCBD<&SSPS!4PVSDFTXJGU> 'JYFT < fi YJHOPSFJOWBMJE"45OPEF>!MPDBUPS!YCBD<&SSPS!4PVSDFTXJGU> FSSPSGBUBM&SSPS ϥϯ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