F# 4.1ããCallerLineNumber, CallerFileName, CallerMemberNameãæ©è½ããããã«ãªã話
ãã®è¨äºã¯F# Advent Calendar 2016ã®7æ¥ç®ã®ç©´åãç¨è¨äºã§ãã
ä»åã¯æ¨é¡ã«ãããCallerLineNumber, CallerFileName, CallerMemberNameã®è©±ã
Cï¼ 5.0ããå°å ¥ãããCaller Informationæ©è½ãF# 4.1ãã使ããããã«ãªãã¾ãã
- çç¥å¯è½ãªãã©ã¡ã¼ã¿ã«å±æ§ãä»ãã
- ããã©ã«ãå¤ãå®ç¾©ããããªãdefaultArgé¢æ°ã使ãã¾ããã
- é¢æ°ã¯å¯¾è±¡å¤
- Optional Parametersã¯ã¡ã½ããã«ããå®ç¾©ã§ããªãã®ã§ä»æ¹ãªã
ä½ãå¬ãããã£ã¦ãããã®ããã ãã«FSharp.Compiler.Serviceã«ä¾åããªãã¦ãè¯ããªããã¨ã§ããã
å人çãªå©ç¨ç¨éã®ä¸ã¤ã«Persimmonã§ã®æ å ±éå¢å ãããã¾ãã assertionã«å¤±æããæã«ãã¡ã¤ã«åãè¡çªå·ãç°¡åã«ã ããã®ã§å¬ããã§ãã*1ã
*1:F# 4.1ãã表示ã§ããªãåé¡ã¯æ®ã