คุณได้ตรวจสอบรูปร่างของค่าแล้ว — ทำไมคุณถึงต้องร่ายอีกครั้ง? หลังจาก x เป็น String คอมไพเลอร์ Kotlin จะจดจำภายในสาขานั้น: x เป็นสตริงอยู่แล้ว ไม่ใช่ Any นั่นคือนักแสดงที่ชาญฉลาด คอมไพเลอร์เป็นเพื่อนร่วมทีมที่ดี: การแคสต์ที่มีเสียงดังน้อยลง การโกหกระหว่างการตรวจสอบและการใช้งานน้อยลง
คือ — และคอมไพเลอร์เชื่อคุณ
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
▼
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.