# Pluto - Lua에 기능을 추가하고 향상/최적화한 슈퍼셋 언어

> Clean Markdown view of GeekNews topic #12642. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=12642](https://news.hada.io/topic?id=12642)
- GeekNews Markdown: [https://news.hada.io/topic/12642.md](https://news.hada.io/topic/12642.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2024-01-02T10:04:13+09:00
- Updated: 2024-01-02T10:04:13+09:00
- Original source: [pluto-lang.org](https://pluto-lang.org/)
- Points: 12
- Comments: 0

## Topic Body

- Lua 5.4 기반   
- 새로운 기능들 :   
  - 문자열 인덱싱 []  
  - 숫자 중간에 _ 지원, 0x/0b 로 진수 표현  
  - "Break/Continue 레벨"로 여러레벨 루프 나가기 및 계속하기 가능   
  - Lambda  표현 지원 : `function (c) return tonumber(c) + 1 end` → `|c| -> tonumber(c) + 1`  
  - String Interpolation: `"The {label} is {data.value}"`  
  - 3항 표현식: `max = a > b ? a : b`  
  - for-as 루프 지원   
  - switch, case, default  
  - default argument 및 named argument 지원   
- 새로운 연산자 : Alias들(!, **, !=), 복합연산자(%=, +=, <<=, &=,..), nil, :=(Walrus)  
- 기본적으로 표준 Lua보다 살짝 더 빠르며 일부 상황에서는 꽤 빠름   
- Python 표준 라이브러리 수준을 목표로 하고 있어서, 더 많은 표준 라이브러리 제공   
- 그외 다양한 개선사항들 포함

## Comments



_No public comments on this page._
