From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 6422D7EEFC for ; Thu, 19 Nov 2015 11:37:13 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.20,317,1444687200"; d="scan'208";a="154381906" Received: from meleze.ens.fr (HELO [129.199.99.114]) ([129.199.99.114]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 19 Nov 2015 11:37:13 +0100 To: caml-list@inria.fr References: <0F7D3B1B3C4B894D824F5B822E3E5A172CE42130@IRSMSX102.ger.corp.intel.com> From: Francois Berenger Message-ID: <564DA659.1020704@inria.fr> Date: Thu, 19 Nov 2015 11:37:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A172CE42130@IRSMSX102.ger.corp.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] Abbreviating module paths - something like "open X as Y" On 11/19/2015 11:34 AM, Soegtrop, Michael wrote: > Dear OCaml Users, > > I wonder if there is a way to abbreviate module paths. Something like > > open as module L = List [...] L.length [1;2;3] It was advised to me on this same list, several years ago. > I usually find it more readable to have a 2 or 3 letter acronym for a > module name than having the complete module name or no module name at > all. Is there a way to do this in OCaml? > > Best regards, > > Michael > > Intel Deutschland GmbH > Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany > Tel: +49 89 99 8853-0, www.intel.de > Managing Directors: Christin Eisenschmid, Christian Lamprechter > Chairperson of the Supervisory Board: Nicole Lau > Registered Office: Munich > Commercial Register: Amtsgericht Muenchen HRB 186928 > -- Regards, Francois. "When in doubt, use more types"