To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Boo (lenguaje de programación)

De Wikipedia, la enciclopedia libre

Boo
Desarrollador(es)
Rodrigo Oliveira
http://boo-lang.org/
Información general
Paradigma Orientado a objetos
Apareció en 2004
Diseñado por Rodrigo B. De Oliveira
Última versión estable 0.9.7 (25 de marzo de 2013)
Influido por C#, Python
Sistema operativo Multiplataforma
Licencia MIT/BSD

Boo es un lenguaje de programación orientado a objetos, de tipos estáticos para la Common Language Infrastructure con una sintaxis inspirada en Python y un énfasis en la extensibilidad del lenguaje y su compilador. Sus características incluyen la inferencia de tipos, los generadores, multimétodos, duck typing opcional, macros, clausuras, currificación y funciones de primera clase.

Boo es software de código abierto; tiene una licencia tipo MIT/BSD.

Boo se integra sin fisuras con Microsoft.NET y Mono.

YouTube Encyclopedic

  • 1/3
    Views:
    30 643
    17 350
    2 158
  • Quién, Gracias, Adiós, comunicarse con uno mismo por Rosa Quintana
  • LAS CREENCIAS Y EMOCIONES CARMEN ORTEGO
  • Teoría de Shannon - Parte 4/4 - TECNUN

Transcription

Ejemplos de código

Hola mundo

print "Hola Mundo"

Función generadora de la Sucesión de Fibonacci

def fib():
    a as long, b as long = 0, 1
    while true:
        yield b
        a, b = b, a + b
for index as int, element in zip(range(5), fib()):
    print("${index+1}: ${element}")

Ejemplo simple de Windows Forms con clases, cierres y eventos

import System.Windows.Forms
import System.Drawing

class MyForm(Form):
    def constructor():
        b = Button(Text: "Púlsame")
        b.Location = Point(100, 50)
        b.Click += def():
            MessageBox.Show("!has pulsado el botón!")
        self.Controls.Add(b)
f = MyForm()
Application.Run(f)

Ejemplo simple de Gtk#

import System
import Gtk from "gtk-sharp"
	
public class MyWindow:
	def constructor():
		w = Gtk.Window("Hola Mundo")
	        w.DeleteEvent += ExitWindow
		w.ShowAll()
	
	def ExitWindow(o, args as DeleteEventArgs):
		Gtk.Application.Quit()
	
Gtk.Application.Init()
w = MyWindow()
Gtk.Application.Run()

Patrón de diseño asíncrono con un cierre

import System

def run():
    print("en ejecución")

print "arrancado" 
result = run.BeginInvoke({ print("reclamado") })
System.Threading.Thread.Sleep(50ms)
run.EndInvoke(result)

print "fin"

Currificación

plusX = { a as int | return { b as int | return a + b }}
print plusX(3)(4)
  • plusX es una función que toma un entero a, que devuelve otra función que toma un entero b y devuelve a+b."

Véase también

Enlaces externos

Esta página se editó por última vez el 5 mar 2024 a las 21:23.
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.