Miguel de Icaza ApacheCon Keynote Java 5 Annotations: The difference between wanting to see config in the code, or assign it
Nov 16

Getting excited about Groovy again

Tech Add comments

Although I am using Groovy and enjoying it, I will admit to being a bit worried about it.

It has fantastic potential, but I didn’t know if it would have the push to get there. It is always tough if you are developing open source without a company(ies) behind you.

The Groovy London Meetup has just finished (I wish I could have gotten over there), and I am really excited at what I see.

They have ironed out some of the wrinkles in the language, and should be set to use Janino and tools for the parser. Good error messages should be here.

The Java platform is a good one. Where I listen to Miguel talk about Mono and platform vs. language, it reasonates. We can have the same thing with Java. Groovy is just one of these languages, and we have a choice of the tool for the particular solution!

Let’s get Groovy and finish it up!

A few langauge changes

// these are all valid
def x = 1
String x = 1
def String x = 1
def x
String x

// however these are invalid declarations of a variable as it could be a typeo
x = 1
x

OR: Maybe the ‘any’ keyword will be chosen (my preference):

- defining intialized variables/fields:

String foo = “wombat”
Integer i = 45
any bar = “gizmo”

- defining methods:

void someMethod() { … }
any someOtherMethod() { … }
String someStringMethod() { … }

return is not optional UNLESS your block has only one expression

foo() {
println 5
+5 // compile error as this is a dumb expression }

would generate a compile error. It must be one of these instead…

foo() {
println 5+
5
}

foo() {
println 5 +5
}

foo() {
println 5
return +5
}

One Response to “Getting excited about Groovy again”

  1. natalia Says:

    http://gore81.info/index246.html
    http://gore81.info/index2460.html
    http://gore81.info/index2461.html
    http://gore81.info/index2462.html
    http://gore81.info/index2463.html
    http://gore81.info/index2464.html
    http://gore81.info/index2465.html
    http://gore81.info/index2466.html
    http://gore81.info/index2467.html
    http://gore81.info/index2468.html
    http://gore81.info/index2469.html
    http://gore81.info/index247.html
    http://gore81.info/index2470.html
    http://gore81.info/index2471.html
    http://gore81.info/index2472.html
    http://gore81.info/index2473.html
    http://gore81.info/index2474.html
    http://gore81.info/index2475.html
    http://gore81.info/index2476.html
    http://gore81.info/index2477.html
    http://gore81.info/index2478.html
    http://gore81.info/index2479.html
    http://gore81.info/index248.html
    http://gore81.info/index2480.html
    http://gore81.info/index2481.html
    http://gore81.info/index2482.html
    http://gore81.info/index2483.html
    http://gore81.info/index2484.html
    http://gore81.info/index2485.html
    http://gore81.info/index2486.html
    http://gore81.info/index2487.html
    http://gore81.info/index2488.html
    http://gore81.info/index2489.html
    http://gore81.info/index249.html
    http://gore81.info/index2490.html
    http://gore81.info/index2491.html
    http://gore81.info/index2492.html
    http://gore81.info/index2493.html
    http://gore81.info/index2494.html
    http://gore81.info/index2495.html
    http://gore81.info/index2496.html
    http://gore81.info/index2497.html
    http://gore81.info/index2498.html
    http://gore81.info/index2499.html
    http://gore81.info/index25.html
    http://gore81.info/index250.html
    http://gore81.info/index2500.html
    http://gore81.info/index2501.html
    http://gore81.info/index2502.html
    http://gore81.info/index2503.html
    http://gore81.info/index2504.html
    http://gore81.info/index2505.html
    http://gore81.info/index2506.html
    http://gore81.info/index2507.html
    http://gore81.info/index2508.html
    http://gore81.info/index2509.html
    http://gore81.info/index251.html
    http://gore81.info/index2510.html
    http://gore81.info/index2511.html
    http://gore81.info/index2512.html
    http://gore81.info/index2513.html
    http://gore81.info/index2514.html
    http://gore81.info/index2515.html
    http://gore81.info/index2516.html
    http://gore81.info/index2517.html
    http://gore81.info/index2518.html
    http://gore81.info/index2519.html
    http://gore81.info/index252.html
    http://gore81.info/index2520.html
    http://gore81.info/index2521.html
    http://gore81.info/index2522.html
    http://gore81.info/index2523.html
    http://gore81.info/index2524.html
    http://gore81.info/index2525.html
    http://gore81.info/index2526.html
    http://gore81.info/index2527.html
    http://gore81.info/index2528.html
    http://gore81.info/index2529.html
    http://gore81.info/index253.html
    http://gore81.info/index2530.html
    http://gore81.info/index2531.html
    http://gore81.info/index2532.html
    http://gore81.info/index2533.html
    http://gore81.info/index2534.html
    http://gore81.info/index2535.html
    http://gore81.info/index2536.html
    http://gore81.info/index2537.html
    http://gore81.info/index2538.html
    http://gore81.info/index2539.html
    http://gore81.info/index254.html
    http://gore81.info/index2540.html
    http://gore81.info/index2541.html
    http://gore81.info/index2542.html
    http://gore81.info/index2543.html
    http://gore81.info/index2544.html
    http://gore81.info/index2545.html
    http://gore81.info/index2546.html
    http://gore81.info/index2547.html
    http://gore81.info/index2548.html
    http://gore81.info/index2549.html
    http://gore81.info/index255.html
    http://gore81.info/index2550.html
    http://gore81.info/index2551.html
    http://gore81.info/index2552.html
    http://gore81.info/index2553.html
    http://gore81.info/index2554.html
    http://gore81.info/index2555.html
    http://gore81.info/index2556.html
    http://gore81.info/index2557.html
    http://gore81.info/index2558.html
    http://gore81.info/index2559.html
    http://gore81.info/index256.html
    http://gore81.info/index2560.html
    http://gore81.info/index2561.html
    http://gore81.info/index2562.html
    http://gore81.info/index2563.html
    http://gore81.info/index2564.html
    http://gore81.info/index2565.html
    http://gore81.info/index2566.html
    http://gore81.info/index2567.html
    http://gore81.info/index2568.html
    http://gore81.info/index2569.html
    http://gore81.info/index257.html
    http://gore81.info/index2570.html
    http://gore81.info/index2571.html
    http://gore81.info/index2572.html
    http://gore81.info/index2573.html
    http://gore81.info/index2574.html
    http://gore81.info/index2575.html
    http://gore81.info/index2576.html
    http://gore81.info/index2577.html
    http://gore81.info/index2578.html
    http://gore81.info/index2579.html
    http://gore81.info/index258.html
    http://gore81.info/index2580.html
    http://gore81.info/index2581.html
    http://gore81.info/index2582.html
    http://gore81.info/index2583.html
    http://gore81.info/index2584.html
    http://gore81.info/index2585.html
    http://gore81.info/index2586.html
    http://gore81.info/index2587.html
    http://gore81.info/index2588.html
    http://gore81.info/index2589.html
    http://gore81.info/index259.html
    http://gore81.info/index2590.html
    http://gore81.info/index2591.html
    http://gore81.info/index2592.html
    http://gore81.info/index2593.html
    http://gore81.info/index2594.html
    http://gore81.info/index2595.html
    http://gore81.info/index2596.html
    http://gore81.info/index2597.html
    http://gore81.info/index2598.html
    http://gore81.info/index2599.html
    http://gore81.info/index26.html
    http://gore81.info/index260.html
    http://gore81.info/index2600.html
    http://gore81.info/index2601.html
    http://gore81.info/index2602.html
    http://gore81.info/index2603.html
    http://gore81.info/index2604.html
    http://gore81.info/index2605.html
    http://gore81.info/index2606.html
    http://gore81.info/index2607.html
    http://gore81.info/index2608.html
    http://gore81.info/index2609.html
    http://gore81.info/index261.html
    http://gore81.info/index2610.html
    http://gore81.info/index2611.html
    http://gore81.info/index2612.html
    http://gore81.info/index2613.html
    http://gore81.info/index2614.html
    http://gore81.info/index2615.html
    http://gore81.info/index2616.html
    http://gore81.info/index2617.html
    http://gore81.info/index2618.html
    http://gore81.info/index2619.html
    http://gore81.info/index262.html
    http://gore81.info/index2620.html
    http://gore81.info/index2621.html
    http://gore81.info/index2622.html
    http://gore81.info/index2623.html
    http://gore81.info/index2624.html
    http://gore81.info/index2625.html
    http://gore81.info/index2626.html
    http://gore81.info/index2627.html
    http://gore81.info/index2628.html
    http://gore81.info/index2629.html
    http://gore81.info/index263.html
    http://gore81.info/index2630.html
    http://gore81.info/index2631.html
    http://gore81.info/index2632.html
    http://gore81.info/index2633.html
    http://gore81.info/index2634.html
    http://gore81.info/index2635.html
    http://gore81.info/index2636.html
    http://gore81.info/index2637.html
    http://gore81.info/index2638.html
    http://gore81.info/index2639.html
    http://gore81.info/index264.html
    http://gore81.info/index2640.html
    http://gore81.info/index2641.html
    http://gore81.info/index2642.html
    http://gore81.info/index2643.html
    http://gore81.info/index2644.html
    http://gore81.info/index2645.html
    http://gore81.info/index2646.html
    http://gore81.info/index2647.html
    http://gore81.info/index2648.html
    http://gore81.info/index2649.html
    http://gore81.info/index265.html
    http://gore81.info/index2650.html
    http://gore81.info/index2651.html
    http://gore81.info/index2652.html
    http://gore81.info/index2653.html
    http://gore81.info/index2654.html
    http://gore81.info/index2655.html
    http://gore81.info/index2656.html
    http://gore81.info/index2657.html
    http://gore81.info/index2658.html
    http://gore81.info/index2659.html
    http://gore81.info/index266.html
    http://gore81.info/index2660.html
    http://gore81.info/index2661.html
    http://gore81.info/index2662.html
    http://gore81.info/index2663.html
    http://gore81.info/index2664.html
    http://gore81.info/index2665.html
    http://gore81.info/index2666.html
    http://gore81.info/index2667.html
    http://gore81.info/index2668.html
    http://gore81.info/index2669.html
    http://gore81.info/index267.html
    http://gore81.info/index2670.html
    http://gore81.info/index2671.html
    http://gore81.info/index2672.html
    http://gore81.info/index2673.html
    http://gore81.info/index2674.html
    http://gore81.info/index2675.html
    http://gore81.info/index2676.html
    http://gore81.info/index2677.html
    http://gore81.info/index2678.html
    http://gore81.info/index2679.html
    http://gore81.info/index268.html
    http://gore81.info/index2680.html
    http://gore81.info/index2681.html
    http://gore81.info/index2682.html
    http://gore81.info/index2683.html
    http://gore81.info/index2684.html
    http://gore81.info/index2685.html
    http://gore81.info/index2686.html
    http://gore81.info/index2687.html
    http://gore81.info/index2688.html
    http://gore81.info/index2689.html
    http://gore81.info/index269.html
    http://gore81.info/index2690.html
    http://gore81.info/index2691.html
    http://gore81.info/index2692.html
    http://gore81.info/index2693.html
    http://gore81.info/index2694.html
    http://gore81.info/index2695.html
    http://gore81.info/index2696.html
    http://gore81.info/index2697.html
    http://gore81.info/index2698.html
    http://gore81.info/index2699.html
    http://gore81.info/index27.html
    http://gore81.info/index270.html
    http://gore81.info/index2700.html
    http://gore81.info/index2701.html
    http://gore81.info/index2702.html
    http://gore81.info/index2703.html
    http://gore81.info/index2704.html
    http://gore81.info/index2705.html
    http://gore81.info/index2706.html
    http://gore81.info/index2707.html
    http://gore81.info/index2708.html
    http://gore81.info/index2709.html
    http://gore81.info/index271.html
    http://gore81.info/index2710.html
    http://gore81.info/index2711.html
    http://gore81.info/index2712.html
    http://gore81.info/index2713.html
    http://gore81.info/index2714.html
    http://gore81.info/index2715.html
    http://gore81.info/index2716.html
    http://gore81.info/index2717.html
    http://gore81.info/index2718.html
    http://gore81.info/index2719.html
    http://gore81.info/index272.html
    http://gore81.info/index2720.html
    http://gore81.info/index2721.html
    http://gore81.info/index2722.html
    http://gore81.info/index2723.html
    http://gore81.info/index2724.html
    http://gore81.info/index2725.html
    http://gore81.info/index2726.html
    http://gore81.info/index2727.html
    http://gore81.info/index2728.html
    http://gore81.info/index2729.html
    http://gore81.info/index273.html
    http://gore81.info/index2730.html
    http://gore81.info/index2731.html
    http://gore81.info/index2732.html
    http://gore81.info/index2733.html
    http://gore81.info/index2734.html
    http://gore81.info/index2735.html
    http://gore81.info/index2736.html
    http://gore81.info/index2737.html
    http://gore81.info/index2738.html
    http://gore81.info/index2739.html
    http://gore81.info/index274.html
    http://gore81.info/index2740.html
    http://gore81.info/index2741.html
    http://gore81.info/index2742.html
    http://gore81.info/index2743.html
    http://gore81.info/index2744.html
    http://gore81.info/index2745.html
    http://gore81.info/index2746.html
    http://gore81.info/index2747.html
    http://gore81.info/index2748.html
    http://gore81.info/index2749.html
    http://gore81.info/index275.html
    http://gore81.info/index2750.html
    http://gore81.info/index2751.html
    http://gore81.info/index2752.html
    http://gore81.info/index2753.html
    http://gore81.info/index2754.html
    http://gore81.info/index2755.html
    http://gore81.info/index2756.html
    http://gore81.info/index2757.html
    http://gore81.info/index2758.html
    http://gore81.info/index2759.html
    http://gore81.info/index276.html
    http://gore81.info/index2760.html
    http://gore81.info/index2761.html
    http://gore81.info/index2762.html
    http://gore81.info/index2763.html
    http://gore81.info/index2764.html
    http://gore81.info/index2765.html
    http://gore81.info/index2766.html
    http://gore81.info/index2767.html
    http://gore81.info/index2768.html
    http://gore81.info/index2769.html
    http://gore81.info/index277.html
    http://gore81.info/index2770.html
    http://gore81.info/index2771.html
    http://gore81.info/index2772.html
    http://gore81.info/index2773.html
    http://gore81.info/index2774.html
    http://gore81.info/index2775.html
    http://gore81.info/index2776.html
    http://gore81.info/index2777.html
    http://gore81.info/index2778.html
    http://gore81.info/index2779.html
    http://gore81.info/index278.html
    http://gore81.info/index2780.html
    http://gore81.info/index2781.html
    http://gore81.info/index2782.html
    http://gore81.info/index2783.html
    http://gore81.info/index2784.html
    http://gore81.info/index2785.html
    http://gore81.info/index2786.html
    http://gore81.info/index2787.html
    http://gore81.info/index2788.html
    http://gore81.info/index2789.html
    http://gore81.info/index279.html
    http://gore81.info/index2790.html
    http://gore81.info/index2791.html
    http://gore81.info/index2792.html
    http://gore81.info/index2793.html
    http://gore81.info/index2794.html
    http://gore81.info/index2795.html
    http://gore81.info/index2796.html
    http://gore81.info/index2797.html
    http://gore81.info/index2798.html
    http://gore81.info/index2799.html
    http://gore81.info/index28.html
    http://gore81.info/index280.html
    http://gore81.info/index2800.html
    http://gore81.info/index2801.html
    http://gore81.info/index2802.html
    http://gore81.info/index2803.html
    http://gore81.info/index2804.html
    http://gore81.info/index2805.html
    http://gore81.info/index2806.html
    http://gore81.info/index2807.html
    http://gore81.info/index2808.html
    http://gore81.info/index2809.html
    http://gore81.info/index281.html
    http://gore81.info/index2810.html
    http://gore81.info/index2811.html
    http://gore81.info/index2812.html
    http://gore81.info/index2813.html
    http://gore81.info/index2814.html
    http://gore81.info/index2815.html
    http://gore81.info/index2816.html
    http://gore81.info/index2817.html
    http://gore81.info/index2818.html
    http://gore81.info/index2819.html
    http://gore81.info/index282.html
    http://gore81.info/index2820.html
    http://gore81.info/index2821.html
    http://gore81.info/index2822.html
    http://gore81.info/index2823.html
    http://gore81.info/index2824.html
    http://gore81.info/index2825.html
    http://gore81.info/index2826.html
    http://gore81.info/index2827.html
    http://gore81.info/index2828.html
    http://gore81.info/index2829.html
    http://gore81.info/index283.html
    http://gore81.info/index2830.html
    http://gore81.info/index2831.html
    http://gore81.info/index2832.html
    http://gore81.info/index2833.html
    http://gore81.info/index2834.html
    http://gore81.info/index2835.html
    http://gore81.info/index2836.html
    http://gore81.info/index2837.html
    http://gore81.info/index2838.html
    http://gore81.info/index2839.html
    http://gore81.info/index284.html
    http://gore81.info/index2840.html
    http://gore81.info/index2841.html
    http://gore81.info/index2842.html
    http://gore81.info/index2843.html
    http://gore81.info/index2844.html
    http://gore81.info/index2845.html
    http://gore81.info/index2846.html
    http://gore81.info/index2847.html
    http://gore81.info/index2848.html
    http://gore81.info/index2849.html
    http://gore81.info/index285.html
    http://gore81.info/index2850.html
    http://gore81.info/index2851.html
    http://gore81.info/index2852.html
    http://gore81.info/index2853.html
    http://gore81.info/index2854.html
    http://gore81.info/index2855.html
    http://gore81.info/index2856.html
    http://gore81.info/index2857.html
    http://gore81.info/index2858.html
    http://gore81.info/index2859.html
    http://gore81.info/index286.html
    http://gore81.info/index2860.html
    http://gore81.info/index2861.html
    http://gore81.info/index2862.html
    http://gore81.info/index2863.html
    http://gore81.info/index2864.html
    http://gore81.info/index2865.html
    http://gore81.info/index2866.html
    http://gore81.info/index2867.html
    http://gore81.info/index2868.html
    http://gore81.info/index2869.html
    http://gore81.info/index287.html
    http://gore81.info/index2870.html
    http://gore81.info/index2871.html
    http://gore81.info/index2872.html
    http://gore81.info/index2873.html
    http://gore81.info/index2874.html
    http://gore81.info/index2875.html
    http://gore81.info/index2876.html
    http://gore81.info/index2877.html
    http://gore81.info/index2878.html
    http://gore81.info/index2879.html
    http://gore81.info/index288.html
    http://gore81.info/index2880.html
    http://gore81.info/index2881.html
    http://gore81.info/index2882.html
    http://gore81.info/index2883.html
    http://gore81.info/index2884.html
    http://gore81.info/index2885.html
    http://gore81.info/index2886.html
    http://gore81.info/index2887.html
    http://gore81.info/index2888.html
    http://gore81.info/index2889.html
    http://gore81.info/index289.html
    http://gore81.info/index2890.html
    http://gore81.info/index2891.html
    http://gore81.info/index2892.html
    http://gore81.info/index2893.html
    http://gore81.info/index2894.html
    http://gore81.info/index2895.html
    http://gore81.info/index2896.html
    http://gore81.info/index2897.html
    http://gore81.info/index2898.html
    http://gore81.info/index2899.html
    http://gore81.info/index29.html
    http://gore81.info/index290.html
    http://gore81.info/index2900.html
    http://gore81.info/index2901.html
    http://gore81.info/index2902.html
    http://gore81.info/index2903.html
    http://gore81.info/index2904.html
    http://gore81.info/index2905.html
    http://gore81.info/index2906.html
    http://gore81.info/index2907.html
    http://gore81.info/index2908.html
    http://gore81.info/index2909.html
    http://gore81.info/index291.html
    http://gore81.info/index2910.html
    http://gore81.info/index2911.html
    http://gore81.info/index2912.html
    http://gore81.info/index2913.html
    http://gore81.info/index2914.html
    http://gore81.info/index2915.html
    http://gore81.info/index2916.html
    http://gore81.info/index2917.html
    http://gore81.info/index2918.html
    http://gore81.info/index2919.html
    http://gore81.info/index292.html
    http://gore81.info/index2920.html
    http://gore81.info/index2921.html
    http://gore81.info/index2922.html
    http://gore81.info/index2923.html
    http://gore81.info/index2924.html
    http://gore81.info/index2925.html
    http://gore81.info/index2926.html
    http://gore81.info/index2927.html
    http://gore81.info/index2928.html
    http://gore81.info/index2929.html
    http://gore81.info/index293.html
    http://gore81.info/index2930.html
    http://gore81.info/index2931.html
    http://gore81.info/index2932.html
    http://gore81.info/index2933.html
    http://gore81.info/index2934.html
    http://gore81.info/index2935.html
    http://gore81.info/index2936.html
    http://gore81.info/index2937.html
    http://gore81.info/index2938.html
    http://gore81.info/index2939.html
    http://gore81.info/index294.html
    http://gore81.info/index2940.html
    http://gore81.info/index2941.html
    http://gore81.info/index2942.html
    http://gore81.info/index2943.html
    http://gore81.info/index2944.html
    http://gore81.info/index2945.html
    http://gore81.info/index2946.html
    http://gore81.info/index2947.html
    http://gore81.info/index2948.html
    http://gore81.info/index2949.html
    http://gore81.info/index295.html
    http://gore81.info/index2950.html
    http://gore81.info/index2951.html
    http://gore81.info/index2952.html
    http://gore81.info/index2953.html
    http://gore81.info/index2954.html
    http://gore81.info/index2955.html
    http://gore81.info/index2956.html
    http://gore81.info/index2957.html
    http://gore81.info/index2958.html
    http://gore81.info/index2959.html
    http://gore81.info/index296.html
    http://gore81.info/index2960.html
    http://gore81.info/index2961.html
    http://gore81.info/index2962.html
    http://gore81.info/index2963.html
    http://gore81.info/index2964.html
    http://gore81.info/index2965.html
    http://gore81.info/index2966.html
    http://gore81.info/index2967.html
    http://gore81.info/index2968.html
    http://gore81.info/index2969.html
    http://gore81.info/index297.html
    http://gore81.info/index2970.html
    http://gore81.info/index2971.html
    http://gore81.info/index2972.html
    http://gore81.info/index2973.html
    http://gore81.info/index2974.html
    http://gore81.info/index2975.html
    http://gore81.info/index2976.html
    http://gore81.info/index2977.html
    http://gore81.info/index2978.html
    http://gore81.info/index2979.html
    http://gore81.info/index298.html
    http://gore81.info/index2980.html
    http://gore81.info/index2981.html
    http://gore81.info/index2982.html
    http://gore81.info/index2983.html
    http://gore81.info/index2984.html
    http://gore81.info/index2985.html
    http://gore81.info/index2986.html
    http://gore81.info/index2987.html
    http://gore81.info/index2988.html
    http://gore81.info/index2989.html
    http://gore81.info/index299.html
    http://gore81.info/index2990.html
    http://gore81.info/index2991.html
    http://gore81.info/index2992.html
    http://gore81.info/index2993.html
    http://gore81.info/index2994.html
    http://gore81.info/index2995.html
    http://gore81.info/index2996.html
    http://gore81.info/index2997.html
    http://gore81.info/index2998.html
    http://gore81.info/index2999.html
    http://gore81.info/index3.html
    http://gore81.info/index30.html
    http://gore81.info/index300.html
    http://gore81.info/index3000.html
    http://gore81.info/index3001.html
    http://gore81.info/index3002.html
    http://gore81.info/index3003.html
    http://gore81.info/index3004.html
    http://gore81.info/index3005.html
    http://gore81.info/index3006.html
    http://gore81.info/index3007.html
    http://gore81.info/index3008.html
    http://gore81.info/index3009.html
    http://gore81.info/index301.html
    http://gore81.info/index3010.html
    http://gore81.info/index3011.html
    http://gore81.info/index3012.html
    http://gore81.info/index3013.html
    http://gore81.info/index3014.html

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: What are the first four letters in the word British?