File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/raku Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ # Sitio oficial: https://raku.org/
2+
3+ # Comentario de una sola línea
4+
5+ #`(
6+ Comentario de varias líneas comienzan con los caracteres #` seguidos de un par de estos caracteres
7+ () , {}, []
8+ )
9+
10+ # Variables escalares comienzan con el signo dólar $
11+ my $ escalares ;
12+
13+ # Strings
14+ my $ raku_language = " Raku" ;
15+
16+ # Números
17+ my $ entero = 42 ;
18+ my $ racional = 3 / 4 ;
19+ my $ ieee = 5.424 E40;
20+
21+ # Booleanos
22+ my $ true = True ;
23+ my $ false = False ;
24+
25+ # Rangos
26+ my $ mi_rango = 1 .. 5 ;
27+
28+ say " ¡Hola, " ~ $ raku_language ~ " !\n " ; # Para concatenar cadenas se usa el signo ~
29+ print " ¡Hola, $ raku_language !" ; # Usando interpolación de variables
You can’t perform that action at this time.
0 commit comments